public static final class NotEmptyConstraint.MapType extends NotEmptyConstraint<Map<?,?>>
NotEmptyConstraint
implementation for
all JDK java.util.Map
types.ConstraintFactory.mapNotEmpty()
NotEmptyConstraint.ArrayType, NotEmptyConstraint.CollectionType, NotEmptyConstraint.MapType, NotEmptyConstraint.StringType
Modifier and Type | Field and Description |
---|---|
static NotEmptyConstraint.MapType |
DEFAULT
NotEmptyConstraint.MapType single instance. |
Modifier and Type | Method and Description |
---|---|
Class<?> |
getType()
Returns
java.util.Map type. |
protected <T> boolean |
isEmpty(Map<?,?> value,
ValidationContext<T> context)
Determines whether the specified map is empty.
|
check, getMessageTemplate
validate
appendMessageArguments
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appendMessageArguments
public static final NotEmptyConstraint.MapType DEFAULT
NotEmptyConstraint.MapType
single instance.public Class<?> getType()
java.util.Map
type.java.util.Map
type.protected <T> boolean isEmpty(Map<?,?> value, ValidationContext<T> context)
isEmpty
in class NotEmptyConstraint<Map<?,?>>
T
- The type of validated entity.value
- Map to be checked for empty.context
- Validation context.true
if the specified map is empty;
false
otherwise.Copyright © 2011–2020 FoxLabs. All rights reserved.