public abstract class Quantity<T extends java.lang.Number> extends Unit
Constructor and Description |
---|
Quantity(T value)
Construct an instance of Quantity with the value.
|
Modifier and Type | Method and Description |
---|---|
double |
doubleValue() |
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
getSerializedValue() |
java.lang.String |
getTypeString() |
int |
intValue() |
java.lang.String |
toString() |
public Quantity(T value)
value
- a quantitative Unit value.public double doubleValue()
public java.lang.Object getSerializedValue()
getSerializedValue
in class Unit
public int intValue()
public java.lang.String getTypeString()
public java.lang.String toString()
toString
in class java.lang.Object