public enum TrimState extends Enum<TrimState>
Initializer classes. As a rule of thumb, there should only be one state concurrent state
throughout all instances of the Initializer classes of the app at the same time. Otherwise,
the onInitialize() should throw an IllegalStateException in order to indicate that an
illegal state has occurred.| Enum Constant and Description |
|---|
FORCE_TRIMMED |
INITIALIZED |
NONE |
TRIMMED |
| Modifier and Type | Method and Description |
|---|---|
static TrimState |
fromOrdinal(int value)
This method takes an arbitrary int value and returns the appropriate enum-value In case the
int-value is not a valid value of the enum, an Exception will be thrown.
|
static TrimState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TrimState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TrimState NONE
public static final TrimState INITIALIZED
public static final TrimState TRIMMED
public static final TrimState FORCE_TRIMMED
public static TrimState[] values()
for (TrimState c : TrimState.values()) System.out.println(c);
public static TrimState 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 nullpublic static TrimState fromOrdinal(int value)
value - The integer value to convert into the enum (also called "ordinal")InvalidEnumValueException - if value is not a valid value for the enum.