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