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 protected
NumericConstraint(String definition)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected boolean
equals(T val, T bound)
protected abstract T
getBound(String bound)
protected abstract T
getValue(Value value)
protected boolean
greater(T val, T bound)
protected boolean
greaterOrEqual(T val, T bound)
protected abstract boolean
less(T val, T bound)
protected boolean
lessOrEqual(T val, T bound)
boolean
test(@Nullable Value value)
String
toString()
-
-
-
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
-
-