|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvisad.data.netcdf.QuantityDBImpl.NameKey
visad.data.netcdf.QuantityDBImpl.UnitKey
protected static final class QuantityDBImpl.UnitKey
Provides support for keys to the unit map. Immutable.
Field Summary | |
---|---|
protected Unit |
unit
The default unit of the quantity. |
Constructor Summary | |
---|---|
protected |
QuantityDBImpl.UnitKey(Unit unit,
java.lang.String name)
Constructs from the unit of a quantity and its name. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object obj)
Compare this key to another (unit first). |
Methods inherited from class visad.data.netcdf.QuantityDBImpl.NameKey |
---|
getName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Unit unit
Constructor Detail |
---|
protected QuantityDBImpl.UnitKey(Unit unit, java.lang.String name)
unit
- The default unit of the quantity.name
- The name of the quantity.Method Detail |
---|
public int compareTo(java.lang.Object obj) throws java.lang.ClassCastException
compareTo
in interface java.lang.Comparable
compareTo
in class QuantityDBImpl.NameKey
java.lang.ClassCastException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |