public enum ChangeType extends java.lang.Enum<ChangeType>
Enum Constant and Description |
---|
ADD |
CREATE |
DELETE |
DOWNLOAD |
REMOVE |
UPDATE |
VIEW |
Modifier and Type | Field and Description |
---|---|
private int |
value |
private java.lang.String |
was |
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(java.lang.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.
|
java.lang.String |
was(java.lang.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
public static final ChangeType VIEW
public static final ChangeType DOWNLOAD
public static ChangeType[] values()
for (ChangeType c : ChangeType.values()) System.out.println(c);
public static ChangeType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
public java.lang.String was(java.lang.String what)
what
- The 'what' that something happened topublic static ChangeType fromValue(int value)
value
- The numerical value