<N extends Number & Comparable<? super N>> MeasurementRange<N> |
MeasurementRange.castTo(Class<N> type) |
Casts this range to the specified type.
|
MeasurementRange<E> |
MeasurementRange.convertTo(Unit<?> targetUnit) |
Converts this range to the specified unit.
|
static MeasurementRange<Double> |
MeasurementRange.create(double minValue,
boolean isMinIncluded,
double maxValue,
boolean isMaxIncluded,
Unit<?> unit) |
Constructs a range of double values.
|
static MeasurementRange<Float> |
MeasurementRange.create(float minValue,
boolean isMinIncluded,
float maxValue,
boolean isMaxIncluded,
Unit<?> unit) |
Constructs a range of float values.
|
static MeasurementRange<?> |
MeasurementRange.createBestFit(Number minValue,
boolean isMinIncluded,
Number maxValue,
boolean isMaxIncluded,
Unit<?> unit) |
Constructs a range using the smallest type of Number that can hold the given values.
|
static MeasurementRange<Double> |
MeasurementRange.createGreaterThan(double minValue,
Unit<?> unit) |
Constructs a range of double values greater than the given value.
|