|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--pnuts.ext.Quantity
This class represents a quantity with a unit. pnuts.ext.UnitSystem class is "factory" class for this class.
Fields inherited from interface pnuts.lang.Numeric |
EQUAL,
LEFT_IS_BIGGER,
NOT_EQUAL,
RIGHT_IS_BIGGER |
Method Summary | |
java.lang.Object |
add(java.lang.Object o)
adds the value of parameter to itself |
int |
compareTo(java.lang.Object o)
compare the object with the parameter. |
java.lang.Object |
divide(java.lang.Object o)
divides itself by the value of parameter |
java.lang.Object |
inverse()
inverts itself |
static Quantity |
make(UnitSystem sys,
java.lang.Number n,
java.lang.String unit)
|
java.lang.Object |
multiply(java.lang.Object o)
multiplies itself with the value of parameter |
java.lang.Object |
negate()
negates itself by the value of parameter |
java.lang.Number |
number()
|
java.lang.Object |
subtract(java.lang.Object o)
subtracts the value of parameter from the object |
java.lang.String |
toString()
|
pnuts.ext.Units |
units()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Method Detail |
public static Quantity make(UnitSystem sys, java.lang.Number n, java.lang.String unit)
public pnuts.ext.Units units()
public java.lang.Number number()
public java.lang.Object multiply(java.lang.Object o)
public java.lang.Object divide(java.lang.Object o)
public java.lang.Object add(java.lang.Object o)
public java.lang.Object subtract(java.lang.Object o)
public int compareTo(java.lang.Object o)
public java.lang.Object negate()
public java.lang.Object inverse()
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |