Package org.infinispan.commons.marshall
Enum ValueMatcherMode
- java.lang.Object
-
- java.lang.Enum<ValueMatcherMode>
-
- org.infinispan.commons.marshall.ValueMatcherMode
-
- All Implemented Interfaces:
Serializable
,Comparable<ValueMatcherMode>
public enum ValueMatcherMode extends Enum<ValueMatcherMode>
Value matcher mode.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MATCH_ALWAYS
MATCH_EXPECTED
MATCH_EXPECTED_OR_NEW
MATCH_NEVER
MATCH_NON_NULL
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ValueMatcherMode
valueOf(int ordinal)
Returns the enum constant of this type with the specified name.static ValueMatcherMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static ValueMatcherMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MATCH_ALWAYS
public static final ValueMatcherMode MATCH_ALWAYS
-
MATCH_EXPECTED
public static final ValueMatcherMode MATCH_EXPECTED
-
MATCH_EXPECTED_OR_NEW
public static final ValueMatcherMode MATCH_EXPECTED_OR_NEW
-
MATCH_NON_NULL
public static final ValueMatcherMode MATCH_NON_NULL
-
MATCH_NEVER
public static final ValueMatcherMode MATCH_NEVER
-
-
Method Detail
-
values
public static ValueMatcherMode[] 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 (ValueMatcherMode c : ValueMatcherMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ValueMatcherMode valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
valueOf
public static ValueMatcherMode valueOf(int ordinal)
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:
ordinal
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-