Enum Class MetisDataDifference
- All Implemented Interfaces:
Serializable,Comparable<MetisDataDifference>,Constable
Difference enum and utility.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDifference interface.Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptioncombine(MetisDataDifference pThat) Combine Differences.static <X extends Comparable<? super X>>
intcompareObject(X pCurr, X pNew) Compare two similar objects for order.static <X extends Comparable<? super X>>
intcompareObject(X pCurr, X pNew, boolean pNullLast) Compare two similar objects for order.static MetisDataDifferencedifference(Object pCurr, Object pNew) Determine whether two Generic objects differ.booleanIs there differences?static booleanDetermine whether two Generic objects are equal.booleanIs there no differences?booleanIs there security differences?booleanIs there value differences?toString()static MetisDataDifferenceReturns the enum constant of this class with the specified name.static MetisDataDifference[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IDENTICAL
Identical. -
DIFFERENT
Value Changed. -
SECURITY
Security Changed.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
toString
- Overrides:
toStringin classEnum<MetisDataDifference>
-
isDifferent
public boolean isDifferent()Is there differences?- Returns:
- true/false
-
isIdentical
public boolean isIdentical()Is there no differences?- Returns:
- true/false
-
isValueChanged
public boolean isValueChanged()Is there value differences?- Returns:
- true/false
-
isSecurityChanged
public boolean isSecurityChanged()Is there security differences?- Returns:
- true/false
-
combine
Combine Differences.- Parameters:
pThat- the difference to combine- Returns:
- the combined difference
-
difference
Determine whether two Generic objects differ.- Parameters:
pCurr- The current objectpNew- The new object- Returns:
- the Difference between the objects
-
isEqual
Determine whether two Generic objects are equal.- Parameters:
pCurr- The current objectpNew- The new object- Returns:
- true/false
-
compareObject
Compare two similar objects for order.- Type Parameters:
X- the object type- Parameters:
pCurr- The current objectpNew- The new object- Returns:
- order
-
compareObject
public static <X extends Comparable<? super X>> int compareObject(X pCurr, X pNew, boolean pNullLast) Compare two similar objects for order.- Type Parameters:
X- the object type- Parameters:
pCurr- The current objectpNew- The new objectpNullLast- is Null at end of list?- Returns:
- order
-