public enum ModifiedState extends java.lang.Enum<ModifiedState>
| Enum Constant and Description |
|---|
CLEARED
The cleared state.
|
FIRST_MATCH
The first match state.
|
NEW_MATCH
The new match state.
|
REMOVED
The removed state.
|
UNMODIFIED
The unmodified state.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> ModifiedState |
isModified(java.util.Collection<T> previous,
java.util.Collection<T> next)
Checks if the given previous(for instance in the past) Collection is modified comparing the
next(for instance now) Collection.
|
static ModifiedState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ModifiedState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ModifiedState CLEARED
public static final ModifiedState FIRST_MATCH
public static final ModifiedState NEW_MATCH
public static final ModifiedState REMOVED
public static final ModifiedState UNMODIFIED
public static ModifiedState[] values()
for (ModifiedState c : ModifiedState.values()) System.out.println(c);
public static ModifiedState 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 <T> ModifiedState isModified(java.util.Collection<T> previous, java.util.Collection<T> next)
T - the type.previous - the previous collection.next - the next collection.