Class NumericConstraint<T>
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.nodetype.constraint.NumericConstraint<T>
-
- Direct Known Subclasses:
DateConstraint,DecimalConstraint,DoubleConstraint,LongConstraint
public abstract class NumericConstraint<T> extends Object implements Predicate<Value>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNumericConstraint(String definition)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected booleanequals(T val, T bound)protected abstract TgetBound(String bound)protected abstract TgetValue(Value value)protected booleangreater(T val, T bound)protected booleangreaterOrEqual(T val, T bound)protected abstract booleanless(T val, T bound)protected booleanlessOrEqual(T val, T bound)booleantest(@Nullable Value value)StringtoString()
-
-
-
Constructor Detail
-
NumericConstraint
protected NumericConstraint(String definition)
-
-
Method Detail
-
test
public boolean test(@Nullable @Nullable Value value)
-
getValue
protected abstract T getValue(Value value) throws RepositoryException
- Throws:
RepositoryException
-
-