@API(status=STABLE, since="1.0") public class PackageSource extends Object implements TestSource
TestSource
.
This class stores the package name because Package
does not
implement Serializable
.
PackageSelector
,
Serialized FormModifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static PackageSource |
from(Package javaPackage)
Create a new
PackageSource using the supplied Java Package . |
static PackageSource |
from(String packageName)
Create a new
PackageSource using the supplied packageName . |
String |
getPackageName()
Get the package name of this test source.
|
int |
hashCode() |
String |
toString() |
public static PackageSource from(Package javaPackage)
PackageSource
using the supplied Java Package
.javaPackage
- the Java package; must not be null
public static PackageSource from(String packageName)
PackageSource
using the supplied packageName
.packageName
- the package name; must not be null
or blankpublic final String getPackageName()