T
- The type of the underlying values of this range.public abstract class NumericRange<T extends java.lang.Number & java.lang.Comparable<T>> extends RangeBase<T>
Modifier | Constructor and Description |
---|---|
protected |
NumericRange(NumericRange<T> range,
IMath<T> math)
Initializes a new instance of
NumericRange |
protected |
NumericRange(T min,
T max,
IMath<T> math)
Initializes a new instance of
NumericRange |
Modifier and Type | Method and Description |
---|---|
double |
getMaxAsDouble()
Gets the double representation of max value
|
double |
getMinAsDouble()
Gets the double representation of min value
|
addRangeChangeObserver, clipTo, clipTo, clone, equals, getDiff, getIsDefined, getIsMinMaxValid, getIsZero, getMath, getMax, getMin, hashCode, isValueWithinRange, removeRangeChangeObserver, set, setMax, setMin, setMinMax, setMinMaxDouble, setMinMaxDoubleForced, setMinMaxForced, setMinMaxWithLimit, toString, union, union
finalize, getClass, notify, notifyAll, wait, wait, wait
getValueType, growBy
protected NumericRange(T min, T max, IMath<T> math)
NumericRange
min
- The min value to initialize range with.max
- The max value to initialize range with.math
- The generic IMath
helper.protected NumericRange(NumericRange<T> range, IMath<T> math)
NumericRange
range
- The NumericRange
instance to initialize new range with.math
- The generic IMath
helper.public final double getMinAsDouble()
public final double getMaxAsDouble()