Package org.geotools.coverage.io.range
Class Measure<V extends Number,Q extends Quantity<Q>> 
Object
Measure<V,Q> 
- Type Parameters:
- V-
- Q-
- All Implemented Interfaces:
- Comparable<Measure<V,- Q>> 
public abstract class Measure<V extends Number,Q extends Quantity<Q>> 
extends Object
implements Comparable<Measure<V,Q>> 
Measurement recorded in provided unit.
- Author:
- Jody Garnett
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintdoubledoubleValue(Unit<Q> unit) Double representation ofgetValue()in the requested unit (values outside of the rangeDouble.MIN_VALUE-Double.MAX_VALUEare represented as infinite).longLong representation ofgetValue()in the requested unit (clipped to rangeLong.MIN_VALUE-Double.MAX_VALUE).numericValue(Unit<Q> unit) Numeric representation of measure in the provided unit
- 
Constructor Details- 
Measurepublic Measure()
 
- 
- 
Method Details- 
numericValueNumeric representation of measure in the provided unit- Returns:
- numeric representation.
 
- 
doubleValueDouble representation ofgetValue()in the requested unit (values outside of the rangeDouble.MIN_VALUE-Double.MAX_VALUEare represented as infinite).- Parameters:
- unit- to convert to double
 
- 
longValueLong representation ofgetValue()in the requested unit (clipped to rangeLong.MIN_VALUE-Double.MAX_VALUE).- Parameters:
- unit- to convert to double
 
- 
compareTo- Specified by:
- compareToin interface- Comparable<V extends Number>
 
 
-