Package org.alfresco.util
Enum EqualsHelper.MapValueComparison
- java.lang.Object
-
- java.lang.Enum<EqualsHelper.MapValueComparison>
-
- org.alfresco.util.EqualsHelper.MapValueComparison
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<EqualsHelper.MapValueComparison>
- Enclosing class:
- EqualsHelper
public static enum EqualsHelper.MapValueComparison extends java.lang.Enum<EqualsHelper.MapValueComparison>
Enumeration for results returned bymap comparisons
.- Since:
- 3.3
- Author:
- Derek Hulley
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EQUAL
The key was present in both maps and the values were equalLEFT_ONLY
The key was only present in the left mapNOT_EQUAL
The key was present in both maps but not equalRIGHT_ONLY
The key was only present in the right map
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EqualsHelper.MapValueComparison
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static EqualsHelper.MapValueComparison[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LEFT_ONLY
public static final EqualsHelper.MapValueComparison LEFT_ONLY
The key was only present in the left map
-
RIGHT_ONLY
public static final EqualsHelper.MapValueComparison RIGHT_ONLY
The key was only present in the right map
-
EQUAL
public static final EqualsHelper.MapValueComparison EQUAL
The key was present in both maps and the values were equal
-
NOT_EQUAL
public static final EqualsHelper.MapValueComparison NOT_EQUAL
The key was present in both maps but not equal
-
-
Method Detail
-
values
public static EqualsHelper.MapValueComparison[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EqualsHelper.MapValueComparison c : EqualsHelper.MapValueComparison.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EqualsHelper.MapValueComparison valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-