A - the type of values this constraint checkspublic abstract class Constraint<A>
extends java.lang.Object
ConfigValue.ConfigValue| Constructor and Description |
|---|
Constraint(ConstraintType type) |
| Modifier and Type | Method and Description |
|---|---|
ConstraintType |
getType() |
abstract boolean |
test(A value)
Tests a value against this
ConfigValue. |
public Constraint(ConstraintType type)
public ConstraintType getType()
public abstract boolean test(A value)
ConfigValue.value - the valuetrue if value satisfies the constraint