public enum ChangeType extends java.lang.Enum<ChangeType>
| Enum Constant and Description |
|---|
ADDED
A specific element has been added to a collection-based property.
|
CHANGED
A specific element has been changed in a collection-based property.
|
NONE
No change occurred.
|
REMOVED
A specific element has been removed from a collection-based property.
|
| Modifier and Type | Method and Description |
|---|---|
static ChangeType |
getChangeType(java.lang.Object oldValue,
java.lang.Object newValue)
Gets the change type for the designated values, that is
if the old value is
null but the new value not, the
change type will be ADDED,
if the new value is null but the old value not, the
change type will be REMOVED,
if both values are equal (with respect to
Object.equals(Object)), NONE will be returned ,
otherwise it will be CHANGED
. |
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.
|
public static final ChangeType NONE
public static final ChangeType ADDED
public static final ChangeType CHANGED
public static final ChangeType REMOVED
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 static ChangeType getChangeType(java.lang.Object oldValue, java.lang.Object newValue)
null but the new value not, the
change type will be ADDED,null but the old value not, the
change type will be REMOVED,Object.equals(Object)), NONE will be returned ,CHANGEDoldValue - The old value for which to determine the change type.newValue - The new value for which to determine the change type.null and whether they are different.