|
JScience v3.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavolution.context.RealtimeObject
org.jscience.mathematics.numbers.Number<Integer64>
org.jscience.mathematics.numbers.Integer64
public final class Integer64
This class represents a 64 bits integer number.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javolution.context.RealtimeObject |
|---|
RealtimeObject.Factory<T extends RealtimeObject> |
| Nested classes/interfaces inherited from interface javolution.context.Realtime |
|---|
Realtime.ObjectSpace |
| Field Summary | |
|---|---|
static Integer64 |
ONE
The 64 bits floating point representing one. |
protected static XMLFormat<Integer64> |
XML
Holds the default XML representation for 64 bits integer numbers. |
static Integer64 |
ZERO
The 64 bits floating point representing zero. |
| Method Summary | |
|---|---|
Integer64 |
abs()
Returns the absolute value of this number. |
int |
compareTo(Integer64 that)
Compares this number with the specified number for order. |
Integer64 |
divide(Integer64 that)
Returns this number divided by the one specified. |
double |
doubleValue()
Returns the value of this number as a double. |
boolean |
equals(java.lang.Object that)
Compares this number against the specified object. |
int |
hashCode()
Returns the hash code for this number. |
boolean |
isLargerThan(Integer64 that)
Compares the magnitude of this number with that number. |
long |
longValue()
Returns the value of this number as a long. |
Integer64 |
minus(Integer64 that)
Returns the difference between this number and the one specified. |
Integer64 |
opposite()
Returns the opposite of this number. |
Integer64 |
plus(Integer64 that)
Returns the sum of this number with the one specified. |
Integer64 |
times(Integer64 that)
Returns the product of this number with the one specified. |
Text |
toText()
Returns the decimal text representation of this number. |
static Integer64 |
valueOf(java.lang.CharSequence chars)
Returns the number for the specified character sequence. |
static Integer64 |
valueOf(long longValue)
Returns the 64 bits integer from the specified long value. |
| Methods inherited from class org.jscience.mathematics.numbers.Number |
|---|
byteValue, floatValue, intValue, isGreaterThan, isLessThan, move, pow, shortValue |
| Methods inherited from class javolution.context.RealtimeObject |
|---|
export, isLocal, moveHeap, preserve, toString, unpreserve |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final XMLFormat<Integer64> XML
value attribute
holding the textual representation.
public static final Integer64 ZERO
public static final Integer64 ONE
| Method Detail |
|---|
public static Integer64 valueOf(long longValue)
long value.
longValue - the long value for this number.
longValue()public static Integer64 valueOf(java.lang.CharSequence chars)
chars - the character sequence.
public Integer64 opposite()
-this.public Integer64 plus(Integer64 that)
that - the number to be added.
this + that.public Integer64 minus(Integer64 that)
minus in class Number<Integer64>that - the number to be subtracted.
this - that.public Integer64 times(Integer64 that)
that - the number multiplier.
this ยท that.public Integer64 divide(Integer64 that)
that - the number divisor.
this / that.public boolean isLargerThan(Integer64 that)
isLargerThan in class Number<Integer64>|this| > |that|public Integer64 abs()
|this|.public Text toText()
toText in interface RealtimetoText in class Number<Integer64>public boolean equals(java.lang.Object that)
equals in class Number<Integer64>that - the object to compare with.
true if the objects are the same;
false otherwise.public int hashCode()
hashCode in class Number<Integer64>public long longValue()
Numberlong.
longValue in class Number<Integer64>long.public double doubleValue()
Numberdouble.
doubleValue in class Number<Integer64>double.public int compareTo(Integer64 that)
Number(x.compareTo(y)==0) == (x.equals(y)),
compareTo in interface java.lang.Comparable<Integer64>compareTo in class Number<Integer64>that - the number to be compared.
|
JScience v3.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||