public static final class RemoveNullElementsConstraint.ArrayType extends RemoveNullElementsConstraint<Object[]>
RemoveNullElementsConstraint
implementation for all array types.ConstraintFactory.arrayRemoveNullElements()
RemoveNullElementsConstraint.ArrayType, RemoveNullElementsConstraint.CollectionType
Modifier and Type | Field and Description |
---|---|
static RemoveNullElementsConstraint.ArrayType |
DEFAULT
RemoveNullElementsConstraint.ArrayType single instance. |
Modifier and Type | Method and Description |
---|---|
Class<?> |
getType()
Returns
java.lang.Object array type. |
<T> Object[] |
validate(Object[] array,
ValidationContext<T> context)
Removes all
null elements from the specified array. |
getMessageTemplate
appendMessageArguments
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appendMessageArguments
public static final RemoveNullElementsConstraint.ArrayType DEFAULT
RemoveNullElementsConstraint.ArrayType
single instance.public Class<?> getType()
java.lang.Object
array type.java.lang.Object
array type.public <T> Object[] validate(Object[] array, ValidationContext<T> context)
null
elements from the specified array.T
- The type of validated entity.array
- Array to be corrected.context
- Validation context.null
elements.Copyright © 2011–2020 FoxLabs. All rights reserved.