Class NumericConstraint<T>
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.nodetype.constraint.NumericConstraint<T>
-
- All Implemented Interfaces:
java.util.function.Predicate<Value>
- Direct Known Subclasses:
DateConstraint
,DecimalConstraint
,DoubleConstraint
,LongConstraint
public abstract class NumericConstraint<T> extends java.lang.Object implements java.util.function.Predicate<Value>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
NumericConstraint(java.lang.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(java.lang.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)
java.lang.String
toString()
-
-
-
Method Detail
-
getBound
protected abstract T getBound(java.lang.String bound)
-
test
public boolean test(@Nullable @Nullable Value value)
- Specified by:
test
in interfacejava.util.function.Predicate<T>
-
getValue
protected abstract T getValue(Value value) throws RepositoryException
- Throws:
RepositoryException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-