Integer64
org.jscience.mathematics.number

Class Integer64

    • Field Detail

      • ZERO

        public static final Integer64 ZERO
        The 64 bits floating point representing zero.
      • ONE

        public static final Integer64 ONE
        The 64 bits floating point representing one.
    • Method Detail

      • valueOf

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

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

        public Integer64 opposite()
        Returns the opposite of this number.
        Returns:
        -this.
      • plus

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

SCaVis 2.2 © jWork.ORG