<N extends Number & Comparable<? super N>> MeasurementRange<N> |
MeasurementRange.castTo(Class<N> type) |
Casts this range to the specified type.
|
MeasurementRange |
MeasurementRange.convertTo(Unit<?> targetUnits) |
Converts this range to the specified units.
|
static MeasurementRange<Double> |
MeasurementRange.create(double minimum,
boolean isMinIncluded,
double maximum,
boolean isMaxIncluded,
Unit<?> units) |
Constructs a range of double values.
|
static MeasurementRange<Double> |
MeasurementRange.create(double minimum,
double maximum,
Unit<?> units) |
Constructs an inclusive range of double values.
|
static MeasurementRange<Float> |
MeasurementRange.create(float minimum,
boolean isMinIncluded,
float maximum,
boolean isMaxIncluded,
Unit<?> units) |
Constructs a range of float values.
|
static MeasurementRange<Float> |
MeasurementRange.create(float minimum,
float maximum,
Unit<?> units) |
Constructs an inclusive range of float values.
|
MeasurementRange |
MeasurementRange.intersect(Range range) |
Returns the intersection of this range with the given range.
|
MeasurementRange[] |
MeasurementRange.subtract(Range range) |
Returns the range of values that are in this range but not in the given range.
|
MeasurementRange |
MeasurementRange.union(Range range) |
Returns the union of this range with the given range.
|