public class SizeValidatorForArraysOfShort extends SizeValidatorForArraysOfPrimitives implements ConstraintValidator<Size,short[]>
max, min
Constructor and Description |
---|
SizeValidatorForArraysOfShort() |
Modifier and Type | Method and Description |
---|---|
boolean |
isValid(short[] array,
ConstraintValidatorContext constraintValidatorContext)
Checks the number of entries in an array.
|
initialize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initialize
public boolean isValid(short[] array, ConstraintValidatorContext constraintValidatorContext)
isValid
in interface ConstraintValidator<Size,short[]>
array
- The array to validate.constraintValidatorContext
- context in which the constraint is evaluated.true
if the array is null
or the number of entries in
array
is between the specified min
and max
values (inclusive),
false
otherwise.Copyright © 2021 JBoss by Red Hat. All rights reserved.