Package com.sun.solaris.service.pools
Class UnsignedInt64
- java.lang.Object
-
- java.lang.Number
-
- java.math.BigInteger
-
- com.sun.solaris.service.pools.UnsignedInt64
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<java.math.BigInteger>
public class UnsignedInt64 extends java.math.BigInteger
- See Also:
- Serialized Form
-
-
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
-
-
-
-
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.
-
-