Package ucar.unidata.metdata
Interface Quantity
- All Superinterfaces:
Comparable
Abstraction for physical quantity.
- Version:
- $Revision: 1.8 $ $Date: 2005/05/13 18:31:30 $
- Author:
- Glenn Davis
-
Method Summary
Modifier and TypeMethodDescriptionformat
(StringBuffer buf) Format this QuantitygetName()
Get the name of this Quantity.boolean
isAssignable
(Value value) See if aValue
is assignable to this Quantityboolean
isAssignable
(ucar.units.Unit unit) See if theUnit
is assignable to this quantity.Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getName
String getName()Get the name of this Quantity.- Returns:
- quantity name
-
isAssignable
boolean isAssignable(ucar.units.Unit unit) See if theUnit
is assignable to this quantity. i.e, is it a compatible unit- Parameters:
unit
- Unit in question- Returns:
- true if compatible
-
isAssignable
See if aValue
is assignable to this Quantity- Parameters:
value
- Value to check.- Returns:
- true if it is assignable.
-
format
Format this Quantity- Parameters:
buf
- input/output buffer- Returns:
buf
with formatted info
-