|
JScience v4.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Number
org.jscience.mathematics.number.Number<Integer64>
org.jscience.mathematics.number.Integer64
public final class Integer64
This class represents a 64 bits integer number.
| Field Summary | |
|---|---|
static Integer64 |
ONE
The 64 bits floating point representing one. |
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. |
int |
compareTo(long value)
Compares this number with the specified value for order. |
Integer64 |
copy()
Returns a copy of this number allocated
by the calling thread (possibly on the stack). |
Integer64 |
divide(Integer64 that)
Returns this number divided by the one specified. |
Integer64 |
divide(long value)
Returns this number divided by the specified value. |
double |
doubleValue()
Returns the value of this number as a double. |
boolean |
equals(long value)
Compares this number against the specified value. |
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 |
minus(long value)
Returns the difference between this number and the specified value |
Integer64 |
opposite()
Returns the opposite of this number. |
Integer64 |
plus(Integer64 that)
Returns the sum of this number with the one specified. |
Integer64 |
plus(long value)
Returns the sum of this number with the specifice value. |
Integer64 |
times(Integer64 that)
Returns the product of this number with the one specified. |
Integer64 |
times(long value)
Returns the product of this number with the specified value. |
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.number.Number |
|---|
byteValue, floatValue, intValue, isGreaterThan, isLessThan, pow, shortValue, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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 plus(long value)
value - the value to be added.
this + value.public Integer64 minus(Integer64 that)
minus in class Number<Integer64>that - the number to be subtracted.
this - that.public Integer64 minus(long value)
value - the value to be subtracted.
this - value.public Integer64 times(Integer64 that)
that - the number multiplier.
this · that.public Integer64 times(long value)
value - the value multiplier.
this · value.public Integer64 divide(Integer64 that)
that - the number divisor.
this / that.public Integer64 divide(long value)
value - the value divisor.
this / value.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 boolean equals(long value)
value - the value to compare with.
this.longValue() == valuepublic int compareTo(long value)
value - the value to be compared with.
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.
public Integer64 copy()
Numberallocated
by the calling thread (possibly on the stack).
copy in interface ValueTypecopy in class Number<Integer64>
|
JScience v4.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||