Package net.aifusion.metamodel
Class UInt64
java.lang.Object
java.lang.Number
java.math.BigInteger
net.aifusion.metamodel.UInt64
- All Implemented Interfaces:
Serializable
,Comparable<BigInteger>
The UnsignedInt64 class represents an unsigned 64-bit number
- Author:
- Sharad Singhal
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final BigInteger
maximum dataValue possible for the unsigned integerstatic final BigInteger
minimum dataValue possible for the unsigned integerFields inherited from class java.math.BigInteger
ONE, TEN, TWO, ZERO
-
Constructor Summary
-
Method Summary
Methods inherited from class java.math.BigInteger
abs, add, and, andNot, bitCount, bitLength, byteValueExact, clearBit, compareTo, divide, divideAndRemainder, doubleValue, flipBit, floatValue, gcd, getLowestSetBit, hashCode, intValue, intValueExact, isProbablePrime, longValue, longValueExact, max, min, mod, modInverse, modPow, multiply, negate, nextProbablePrime, not, or, parallelMultiply, 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
-
Field Details
-
MAX_VALUE
maximum dataValue possible for the unsigned integer -
MIN_VALUE
minimum dataValue possible for the unsigned integer
-
-
Constructor Details
-
UInt64
Create an unsigned 64 number from a string- Parameters:
val
- - input string containing integer dataValue 0 < val < 2^64
-
UInt64
public UInt64(long val)
-
-
Method Details
-
equals
Compares this unsigned 64-bit integer object with the specified object for equality- Overrides:
equals
in classBigInteger
- Parameters:
o
- the object to compare- Returns:
- true if the specified object is an unsigned 64-bit integer equals to this integer Otherwise, false.
-