\n\n\n\nInteger64\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n
\n
\n
\n\n\n\n
\n
org.jscience.mathematics.number
\n

## Class Integer64

\n
\n
\n
\n
\n
\n
\n
\n
\n
• \n\n
\n
• \n\n\n

### Field Summary

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
Fields
Modifier and TypeField and Description
`static Integer64``ONE`\n
The 64 bits floating point representing one.
\n
`static Integer64``ZERO`\n
The 64 bits floating point representing zero.
\n
\n
• \n
\n\n
\n
• \n\n\n

### Method Summary

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
Methods
Modifier and TypeMethod and Description
`Integer64``abs()`\n
Returns the absolute value of this number.
\n
`int``compareTo(Integer64 that)`\n
Compares this number with the specified number for order.
\n
`int``compareTo(long value)`\n
Compares this number with the specified value for order.
\n
`Integer64``copy()`\n
Returns a copy of this number \n `allocated` \n by the calling thread (possibly on the stack).
\n
`Integer64``divide(Integer64 that)`\n
Returns this number divided by the one specified.
\n
`Integer64``divide(long value)`\n
Returns this number divided by the specified value.
\n
`double``doubleValue()`\n
Returns the value of this number as a `double`.
\n
`boolean``equals(long value)`\n
Compares this number against the specified value.
\n
`boolean``equals(Object that)`\n
Compares this number against the specified object.
\n
`int``hashCode()`\n
Returns the hash code for this number.
\n
`boolean``isLargerThan(Integer64 that)`\n
Compares the magnitude of this number with that number.
\n
`long``longValue()`\n
Returns the value of this number as a `long`.
\n
`Integer64``minus(Integer64 that)`\n
Returns the difference between this number and the one specified.
\n
`Integer64``minus(long value)`\n
Returns the difference between this number and the specified value
\n
`Integer64``opposite()`\n
Returns the opposite of this number.
\n
`Integer64``plus(Integer64 that)`\n
Returns the sum of this number with the one specified.
\n
`Integer64``plus(long value)`\n
Returns the sum of this number with the specifice value.
\n
`Integer64``times(Integer64 that)`\n
Returns the product of this number with the one specified.
\n
`Integer64``times(long value)`\n
Returns the product of this number with the specified value.
\n
`javolution.text.Text``toText()`\n
Returns the decimal text representation of this number.
\n
`static Integer64``valueOf(CharSequence chars)`\n
Returns the number for the specified character sequence.
\n
`static Integer64``valueOf(long longValue)`\n
Returns the 64 bits integer from the specified `long` value.
\n
\n
\n
• \n\n\n

### Methods inherited from class org.jscience.mathematics.number.Number

\n`byteValue, floatValue, intValue, isGreaterThan, isLessThan, pow, shortValue, toString`
• \n
\n
\n
• \n\n\n

### Methods inherited from class java.lang.Object

\n`getClass, notify, notifyAll, wait, wait, wait`
• \n
\n
• \n
\n
• \n
\n
\n
\n
\n
• \n\n
\n
• \n\n\n

### Field Detail

\n\n\n\n
\n
• \n

#### ZERO

\n
`public static final Integer64 ZERO`
\n
The 64 bits floating point representing zero.
\n
• \n
\n\n\n\n
\n
• \n

#### ONE

\n
`public static final Integer64 ONE`
\n
The 64 bits floating point representing one.
\n
• \n
\n
• \n
\n\n
\n
• \n\n\n

### Method Detail

\n\n\n\n
\n
• \n

#### valueOf

\n
`public static Integer64 valueOf(long longValue)`
\n
Returns the 64 bits integer from the specified `long` value.
\n
Parameters:
`longValue` - the `long` value for this number.
\n
Returns:
the corresponding number.
`longValue()`
\n
• \n
\n\n\n\n
\n
• \n

#### valueOf

\n
`public static Integer64 valueOf(CharSequence chars)`
\n
Returns the number for the specified character sequence.
\n
Parameters:
`chars` - the character sequence.
\n
Returns:
the corresponding number.
\n
• \n
\n\n\n\n
\n
• \n

#### opposite

\n
`public Integer64 opposite()`
\n
Returns the opposite of this number.
\n
Returns:
`-this`.
\n
• \n
\n\n\n\n
\n
• \n

#### plus

\n
`public Integer64 plus(Integer64 that)`
\n
Returns the sum of this number with the one specified.
\n
Parameters:
`that` - the number to be added.
\n
Returns:
`this + that`.
\n
• \n
\n\n\n\n
\n
• \n

#### plus

\n
`public Integer64 plus(long value)`
\n
Returns the sum of this number with the specifice value.
\n
Parameters:
`value` - the value to be added.
\n
Returns:
`this + value`.
\n
• \n
\n\n\n\n
\n
• \n

#### minus

\n
`public Integer64 minus(Integer64 that)`
\n
Returns the difference between this number and the one specified.
\n
\n
Overrides:
\n
`minus` in class `Number<Integer64>`
\n
Parameters:
`that` - the number to be subtracted.
\n
Returns:
`this - that`.
\n
• \n
\n\n\n\n
\n
• \n

#### minus

\n
`public Integer64 minus(long value)`
\n
Returns the difference between this number and the specified value
\n
Parameters:
`value` - the value to be subtracted.
\n
Returns:
`this - value`.
\n
• \n
\n\n\n\n
\n
• \n

#### times

\n
`public Integer64 times(Integer64 that)`
\n
Returns the product of this number with the one specified.
\n
Parameters:
`that` - the number multiplier.
\n
Returns:
`this \xc2\xb7 that`.
\n
• \n
\n\n\n\n
\n
• \n

#### times

\n
`public Integer64 times(long value)`
\n
Returns the product of this number with the specified value.
\n
Parameters:
`value` - the value multiplier.
\n
Returns:
`this \xc2\xb7 value`.
\n
• \n
\n\n\n\n
\n
• \n

#### divide

\n
`public Integer64 divide(Integer64 that)`
\n
Returns this number divided by the one specified.
\n
Parameters:
`that` - the number divisor.
\n
Returns:
`this / that`.
\n
• \n
\n\n\n\n
\n
• \n

#### divide

\n
`public Integer64 divide(long value)`
\n
Returns this number divided by the specified value.
\n
Parameters:
`value` - the value divisor.
\n
Returns:
`this / value`.
\n
• \n
\n\n\n\n
\n
• \n

#### isLargerThan

\n
`public boolean isLargerThan(Integer64 that)`
\n
Compares the magnitude of this number with that number.
\n
\n
Specified by:
\n
`isLargerThan` in class `Number<Integer64>`
\n
Returns:
`|this| > |that|`
\n
• \n
\n\n\n\n
\n
• \n

#### abs

\n
`public Integer64 abs()`
\n
Returns the absolute value of this number.
\n
Returns:
`|this|`.
\n
• \n
\n\n\n\n
\n
• \n

#### toText

\n
`public javolution.text.Text toText()`
\n
Returns the decimal text representation of this number.
\n
\n
Specified by:
\n
`toText` in interface `javolution.lang.Realtime`
\n
Specified by:
\n
`toText` in class `Number<Integer64>`
\n
Returns:
the text representation of this number.
\n
• \n
\n\n\n\n
\n
• \n

#### equals

\n
`public boolean equals(Object that)`
\n
Compares this number against the specified object.
\n
\n
Specified by:
\n
`equals` in class `Number<Integer64>`
\n
Parameters:
`that` - the object to compare with.
\n
Returns:
`true` if the objects are the same;\n `false` otherwise.
\n
• \n
\n\n\n\n
\n
• \n

#### equals

\n
`public boolean equals(long value)`
\n
Compares this number against the specified value.
\n
Parameters:
`value` - the value to compare with.
\n
Returns:
`this.longValue() == value`
\n
• \n
\n\n\n\n
\n
• \n

#### compareTo

\n
`public int compareTo(long value)`
\n
Compares this number with the specified value for order.
\n
Parameters:
`value` - the value to be compared with.
\n
Returns:
a negative integer, zero, or a positive integer as this number\n is less than, equal to, or greater than the specified value.
\n
• \n
\n\n\n\n
\n
• \n

#### hashCode

\n
`public int hashCode()`
\n
Returns the hash code for this number.
\n
\n
Specified by:
\n
`hashCode` in class `Number<Integer64>`
\n
Returns:
the hash code value.
\n
• \n
\n\n\n\n
\n
• \n

#### longValue

\n
`public long longValue()`
\n
Description copied from class: `Number`
\n
Returns the value of this number as a `long`.
\n
\n
Specified by:
\n
`longValue` in class `Number<Integer64>`
\n
Returns:
the numeric value represented by this object after conversion\n to type `long`.
\n
• \n
\n\n\n\n
\n
• \n

#### doubleValue

\n
`public double doubleValue()`
\n
Description copied from class: `Number`
\n
Returns the value of this number as a `double`.
\n
\n
Specified by:
\n
`doubleValue` in class `Number<Integer64>`
\n
Returns:
the numeric value represented by this object after conversion\n to type `double`.
\n
• \n
\n\n\n\n
\n
• \n

#### compareTo

\n
`public int compareTo(Integer64 that)`
\n
Description copied from class: `Number`
\n
Compares this number with the specified number for order. Returns a\n negative integer, zero, or a positive integer as this number is less\n than, equal to, or greater than the specified number. \n Implementation must ensure that this method is consistent with equals \n `(x.compareTo(y)==0) == (x.equals(y))`,
\n
\n
Specified by:
\n
`compareTo` in interface `Comparable<Integer64>`
\n
Specified by:
\n
`compareTo` in class `Number<Integer64>`
\n
Parameters:
`that` - the number to be compared.
\n
Returns:
a negative integer, zero, or a positive integer as this number\n is less than, equal to, or greater than the specified number.
\n
• \n
\n\n\n\n
\n
• \n

#### copy

\n
`public Integer64 copy()`
\n
Description copied from class: `Number`
\n
Returns a copy of this number \n `allocated` \n by the calling thread (possibly on the stack).
\n
\n
Specified by:
\n
`copy` in interface `javolution.lang.ValueType`
\n
Specified by:
\n
`copy` in class `Number<Integer64>`
\n
Returns:
an identical and independant copy of this number.
\n
• \n
\n
• \n
\n
• \n
\n
\n
\n\n\n
\n\n\n\n\n
\n
\n
\n\n\n