Package org.openl.rules.dt.type
Class DoubleRangeForIntRangeAdaptor
- java.lang.Object
-
- org.openl.rules.dt.type.DoubleRangeForIntRangeAdaptor
-
- All Implemented Interfaces:
IRangeAdaptor<IntRange,Double>
public final class DoubleRangeForIntRangeAdaptor extends Object implements IRangeAdaptor<IntRange,Double>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DoubleadaptValueType(Object value)Adapts value type to the type of specificIRangeAdaptorimplementation.static IRangeAdaptor<IntRange,Double>getInstance()DoublegetMax(IntRange range)Gets max value of range.DoublegetMin(IntRange range)Gets min value of range.booleanuseOriginalSource()
-
-
-
Method Detail
-
getInstance
public static IRangeAdaptor<IntRange,Double> getInstance()
-
getMax
public Double getMax(IntRange range)
Description copied from interface:IRangeAdaptorGets max value of range.- Specified by:
getMaxin interfaceIRangeAdaptor<IntRange,Double>- Returns:
- the max bound of the expression min <= X && X <= max. Returns null if needs maximum possible value.
-
getMin
public Double getMin(IntRange range)
Description copied from interface:IRangeAdaptorGets min value of range.- Specified by:
getMinin interfaceIRangeAdaptor<IntRange,Double>- Returns:
- the min bound of the expression min <= X && X <= max. Returns null if needs minimum possible value.
-
adaptValueType
public Double adaptValueType(Object value)
Description copied from interface:IRangeAdaptorAdapts value type to the type of specificIRangeAdaptorimplementation. To have the possibility to compare these values.- Specified by:
adaptValueTypein interfaceIRangeAdaptor<IntRange,Double>- Parameters:
value- that is going to be compared with values returned byIRangeAdaptor.getMax(Object)andIRangeAdaptor.getMin(Object)values.- Returns:
- value, casted to the type of specific
IRangeAdaptorimplementation.
-
useOriginalSource
public boolean useOriginalSource()
- Specified by:
useOriginalSourcein interfaceIRangeAdaptor<IntRange,Double>
-
-