Package org.openl.rules.dt.type
Interface IRangeAdaptor<T,C extends Comparable<?>>
-
- All Known Implementing Classes:
ARangeIndexEvaluator.RangeIndexNodeAdaptor,CharRangeAdaptor,DateRangeAdaptor,DoubleRangeAdaptor,DoubleRangeForIntRangeAdaptor,IntRangeAdaptor,StringRangeAdaptor
public interface IRangeAdaptor<T,C extends Comparable<?>>- Author:
- snshor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CadaptValueType(Object value)Adapts value type to the type of specificIRangeAdaptorimplementation.CgetMax(T param)Gets max value of range.CgetMin(T param)Gets min value of range.booleanuseOriginalSource()
-
-
-
Method Detail
-
getMax
C getMax(T param)
Gets max value of range.- Parameters:
param-- Returns:
- the max bound of the expression min <= X && X <= max. Returns null if needs maximum possible value.
-
getMin
C getMin(T param)
Gets min value of range.- Parameters:
param-- Returns:
- the min bound of the expression min <= X && X <= max. Returns null if needs minimum possible value.
-
adaptValueType
C adaptValueType(Object value)
Adapts value type to the type of specificIRangeAdaptorimplementation. To have the possibility to compare these values.- Parameters:
value- that is going to be compared with values returned bygetMax(Object)andgetMin(Object)values.- Returns:
- value, casted to the type of specific
IRangeAdaptorimplementation.
-
useOriginalSource
boolean useOriginalSource()
-
-