Serializable
, Comparable<GetInstallerPackageNameMode.Mode>
public static enum GetInstallerPackageNameMode.Mode extends Enum<GetInstallerPackageNameMode.Mode>
ShadowApplicationPackageManager#getInstallerPackageName
modes.Enum Constant | Description |
---|---|
LEGACY |
Robolectric's prior behavior when calling getInstallerPackageName method.
|
REALISTIC |
The new, real behavior when calling getInstallerPackageName method.
|
Modifier and Type | Method | Description |
---|---|---|
static GetInstallerPackageNameMode.Mode |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static GetInstallerPackageNameMode.Mode[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GetInstallerPackageNameMode.Mode LEGACY
public static final GetInstallerPackageNameMode.Mode REALISTIC
public static GetInstallerPackageNameMode.Mode[] values()
for (GetInstallerPackageNameMode.Mode c : GetInstallerPackageNameMode.Mode.values()) System.out.println(c);
public static GetInstallerPackageNameMode.Mode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null