T - the type of numerical value this constraint checkspublic class LengthConstraint<T> extends ValuedConstraint<java.lang.Integer,T>
MINIMUM_LENGTH and MAXIMUM_LENGTH constraint types.| Modifier and Type | Method and Description |
|---|---|
static <T> LengthConstraint<T> |
max(java.lang.Class<T> type,
int min) |
static <T> LengthConstraint<T> |
min(java.lang.Class<T> type,
int min) |
boolean |
test(T value)
Tests a value against this
ConfigLeaf. |
getValuegetTypepublic static <T> LengthConstraint<T> min(@Nullable java.lang.Class<T> type, int min)
public static <T> LengthConstraint<T> max(@Nullable java.lang.Class<T> type, int min)
public boolean test(T value)
ConstraintConfigLeaf.test in class Constraint<T>value - the valuetrue if value satisfies the constraint