V - Q - public abstract class Measure<V extends Number,Q extends Quantity<Q>> extends Object implements Comparable<Measure<V,Q>>
| Constructor and Description |
|---|
Measure() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Measure<V,Q> obj) |
double |
doubleValue(Unit<Q> unit)
Double representation of
getValue() in the requested unit (values outside of the
range Double.MIN_VALUE - Double.MAX_VALUE are represented as infinite). |
long |
longValue(Unit<Q> unit)
Long representation of
getValue() in the requested unit (clipped to range Long.MIN_VALUE - Double.MAX_VALUE). |
Number |
numericValue(Unit<Q> unit)
Numeric representation of measure in the provided unit
|
public Number numericValue(Unit<Q> unit)
unit - public double doubleValue(Unit<Q> unit)
getValue() in the requested unit (values outside of the
range Double.MIN_VALUE - Double.MAX_VALUE are represented as infinite).unit - to convert to doublepublic long longValue(Unit<Q> unit)
getValue() in the requested unit (clipped to range Long.MIN_VALUE - Double.MAX_VALUE).unit - to convert to doubleCopyright © 1996–2019 Geotools. All rights reserved.