Method Summary |
|
final public byte | byteValue() Returns the value of this number as a byte . |
abstract public int | compareTo(T that) Compares this number with the specified number for order. |
abstract public Number<T> | copy() Returns a copy of this number
javolution.context.AllocatorContext allocated
by the calling thread (possibly on the stack). |
abstract public double | doubleValue() Returns the value of this number as a double . |
abstract public boolean | equals(Object obj) Indicates if this number is equals to the specified object.
Parameters: obj - the object to be compared with. |
final public float | floatValue() Returns the value of this number as a float . |
abstract public int | hashCode() Returns the hash code for this number (consistent with
Number.equals(Object) . |
final public int | intValue() Returns the value of this number as an int . |
final public boolean | isGreaterThan(T that) Indicates if this number is ordered after that number
(convenience method).
Parameters: that - the number to compare with. |
abstract public boolean | isLargerThan(T that) Compares the magnitude of this number with that number. |
final public boolean | isLessThan(T that) Indicates if this number is ordered before that number
(convenience method).
Parameters: that - the number to compare with. |
abstract public long | longValue() Returns the value of this number as a long . |
public T | minus(T that) Returns the difference between this number and the one specified.
Parameters: that - the number to be subtracted. |
public T | pow(int exp) Returns this number raised at the specified positive exponent.
Parameters: exp - the positive exponent. |
final public short | shortValue() Returns the value of this number as a short . |
final public String | toString() Returns the text representation of this number as a
java.lang.String . |
abstract public Text | toText() Returns the textual representation of this real-time object
(equivalent to toString except that the returned value
can be allocated from the local context space). |