Class UnsignedInt64

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<java.math.BigInteger>

    public class UnsignedInt64
    extends java.math.BigInteger
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.math.BigInteger MAX_VALUE
      The maximum value is 18446744073709551615.
      static java.math.BigInteger MIN_VALUE
      The minimum value is 0.
      • Fields inherited from class java.math.BigInteger

        ONE, TEN, TWO, ZERO
    • Constructor Summary

      Constructors 
      Constructor Description
      UnsignedInt64​(byte[] bytes)
      Constructs a UnsignedInt64 with the same value as the given byte array, interpreted as a two's-complement number in big-endian byte order (the most significant byte has the lowest index).
      UnsignedInt64​(java.lang.String string)
      Constructs a UnsignedInt64 with the same value as the given string, interpreted in base 10.
      UnsignedInt64​(java.lang.String string, int radix)
      Constructs a UnsignedInt64 with the same value as the given string, interpreted in the given base.
      UnsignedInt64​(java.math.BigInteger value)
      Constructs an UnsignedInt64 with the same value as the given BigInteger.
    • Method Summary

      • Methods inherited from class java.math.BigInteger

        abs, add, and, andNot, bitCount, bitLength, byteValueExact, clearBit, compareTo, divide, divideAndRemainder, doubleValue, equals, flipBit, floatValue, gcd, getLowestSetBit, hashCode, intValue, intValueExact, isProbablePrime, longValue, longValueExact, max, min, mod, modInverse, modPow, multiply, negate, nextProbablePrime, not, or, pow, probablePrime, remainder, setBit, shiftLeft, shiftRight, shortValueExact, signum, sqrt, sqrtAndRemainder, subtract, testBit, toByteArray, toString, toString, valueOf, xor
      • Methods inherited from class java.lang.Number

        byteValue, shortValue
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • MIN_VALUE

        public static final java.math.BigInteger MIN_VALUE
        The minimum value is 0.
      • MAX_VALUE

        public static final java.math.BigInteger MAX_VALUE
        The maximum value is 18446744073709551615.
    • Constructor Detail

      • UnsignedInt64

        public UnsignedInt64​(java.lang.String string)
                      throws java.lang.NumberFormatException
        Constructs a UnsignedInt64 with the same value as the given string, interpreted in base 10.
        Throws:
        java.lang.NumberFormatException - if the given value is outside the representable range.
      • UnsignedInt64

        public UnsignedInt64​(java.lang.String string,
                             int radix)
                      throws java.lang.NumberFormatException
        Constructs a UnsignedInt64 with the same value as the given string, interpreted in the given base.
        Throws:
        java.lang.NumberFormatException - if the given value is outside the representable range.
      • UnsignedInt64

        public UnsignedInt64​(byte[] bytes)
                      throws java.lang.NumberFormatException
        Constructs a UnsignedInt64 with the same value as the given byte array, interpreted as a two's-complement number in big-endian byte order (the most significant byte has the lowest index).
        Throws:
        java.lang.NumberFormatException - if the given value is outside the representable range.
      • UnsignedInt64

        public UnsignedInt64​(java.math.BigInteger value)
                      throws java.lang.NumberFormatException
        Constructs an UnsignedInt64 with the same value as the given BigInteger.
        Throws:
        java.lang.NumberFormatException - if the given value is outside the representable range.