public enum ChangeType extends Enum<ChangeType>
Modifier and Type | Method and Description |
---|---|
static ChangeType |
fromValue(int value)
Get the change type corresponding to the given numerical value.
|
int |
getValue()
Get the numerical value for this change type.
|
static ChangeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChangeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
String |
was(String what)
Create a string for display purposes that explains what
has happened to the what.
|
public static final ChangeType CREATE
public static final ChangeType UPDATE
public static final ChangeType DELETE
public static final ChangeType ADD
public static final ChangeType REMOVE
private final int value
private final String was
public static ChangeType[] values()
for (ChangeType c : ChangeType.values()) System.out.println(c);
public static ChangeType 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 int getValue()
public String was(String what)
what
- The 'what' that something happened topublic static ChangeType fromValue(int value)
value
- The numerical value