protected static final class QuantityDBImpl.UnitKey extends QuantityDBImpl.NameKey
| Modifier and Type | Field and Description |
|---|---|
protected Unit |
unit
The default unit of the quantity.
|
| Modifier | Constructor and Description |
|---|---|
protected |
QuantityDBImpl.UnitKey(Unit unit,
java.lang.String name)
Constructs from the unit of a quantity and its name.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object obj)
Compare this key to another (unit first).
|
getNameprotected final Unit unit
protected QuantityDBImpl.UnitKey(Unit unit, java.lang.String name)
unit - The default unit of the quantity.name - The name of the quantity.public int compareTo(java.lang.Object obj)
throws java.lang.ClassCastException
compareTo in interface java.lang.ComparablecompareTo in class QuantityDBImpl.NameKeyjava.lang.ClassCastException