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.booleanisAssignable(Value value) See if aValueis assignable to this QuantitybooleanisAssignable(ucar.units.Unit unit) See if theUnitis 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 theUnitis assignable to this quantity. i.e, is it a compatible unit- Parameters:
unit- Unit in question- Returns:
- true if compatible
-
isAssignable
See if aValueis 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:
bufwith formatted info
-