public final class Integer64 extends Number<Integer64>
This class represents a 64 bits integer number.
Modifier and Type | Field and Description |
---|---|
static Integer64 |
ONE
The 64 bits floating point representing one.
|
static Integer64 |
ZERO
The 64 bits floating point representing zero.
|
Modifier and Type | Method and Description |
---|---|
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.
|
javolution.text.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. |
byteValue, floatValue, intValue, isGreaterThan, isLessThan, pow, shortValue, toString
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 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)
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 javolution.text.Text toText()
public boolean equals(java.lang.Object that)
public boolean equals(long value)
value
- the value to compare with.this.longValue() == value
public int compareTo(long value)
value
- the value to be compared with.public int hashCode()
public long longValue()
Number
long
.public double doubleValue()
Number
double
.doubleValue
in class Number<Integer64>
double
.public int compareTo(Integer64 that)
Number
(x.compareTo(y)==0) == (x.equals(y))
,