Range
is a compromise between much broader and complex approaches like Google Guava and a too narrow and limited ValueRange
type [JSR-310] added to Java 8 (something like TemporalRange
could have been a better name there, because it uses another specific type TemporalField
and is therefore useless outside the Temporal context) The generic base type Range is suitable for cases where one does not know the exact parameterized quantity type, e.g. results of operations like divide() or multiply() when asType() cannot be applied.
The specialized subclass QuantityRange
is somewhat modeled after definitions in [OGC_OM] and has slight similarities with the MeasurementRange
class from [JSR-256] but using Generics which were not available at the time.
This repository has been archived by the owner on Sep 21, 2020. It is now read-only.