public interface Value
Modifier and Type | Method and Description |
---|---|
java.lang.StringBuffer |
format(java.lang.StringBuffer buf)
Format this Value
|
double |
getDouble()
Get the value as a double
|
double |
getDouble(ucar.units.Unit outputUnit)
Get the double value in a different Unit
|
float |
getFloat()
Get the float value
|
float |
getFloat(ucar.units.Unit outputUnit)
Get the float value in a different Unit
|
int |
getInt()
Get the value (as an integer) for this Value
|
int |
getInt(ucar.units.Unit outputUnit)
Get the value in a different Unit
|
ucar.units.Unit |
getUnit()
Get the
Unit for this Value |
ucar.units.Unit getUnit()
Unit
for this Valueint getInt()
int getInt(ucar.units.Unit outputUnit) throws ucar.units.ConversionException
outputUnit
- new unitucar.units.ConversionException
- incompatible unitsfloat getFloat()
float getFloat(ucar.units.Unit outputUnit) throws ucar.units.ConversionException
outputUnit
- new Unitucar.units.ConversionException
- problem with conversiondouble getDouble()
double getDouble(ucar.units.Unit outputUnit) throws ucar.units.ConversionException
outputUnit
- new Unitucar.units.ConversionException
- problem with conversionjava.lang.StringBuffer format(java.lang.StringBuffer buf)
buf
- input/output bufferbuf
with formatted data