private static enum MapConstraints.NotNullMapConstraint extends java.lang.Enum<MapConstraints.NotNullMapConstraint> implements MapConstraint<java.lang.Object,java.lang.Object>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
void |
checkKeyValue(java.lang.Object key,
java.lang.Object value)
Throws a suitable
RuntimeException if the specified key or value is
illegal. |
java.lang.String |
toString()
Returns a brief human readable description of this constraint, such as
"Not null".
|
static MapConstraints.NotNullMapConstraint |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MapConstraints.NotNullMapConstraint[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MapConstraints.NotNullMapConstraint INSTANCE
public static MapConstraints.NotNullMapConstraint[] values()
for (MapConstraints.NotNullMapConstraint c : MapConstraints.NotNullMapConstraint.values()) System.out.println(c);
public static MapConstraints.NotNullMapConstraint 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 void checkKeyValue(java.lang.Object key, java.lang.Object value)
MapConstraint
RuntimeException
if the specified key or value is
illegal. Typically this is either a NullPointerException
, an
IllegalArgumentException
, or a ClassCastException
, though
an application-specific exception class may be used if appropriate.checkKeyValue
in interface MapConstraint<java.lang.Object,java.lang.Object>
public java.lang.String toString()
MapConstraint
toString
in interface MapConstraint<java.lang.Object,java.lang.Object>
toString
in class java.lang.Enum<MapConstraints.NotNullMapConstraint>