com.rational.test.value
Class UInt64
java.lang.Object
java.lang.Number
com.rational.test.value.UInt64
- All Implemented Interfaces:
- java.lang.Comparable, java.io.Serializable
- public class UInt64
- extends java.lang.Number
- implements java.lang.Comparable
Value class that provides an implementation of an unsigned 64 bit integer. Unsigned 64 bit
integers do not exist in Java, but do exist on other platforms (for example, .NET). This class
allows a Java client to interact with a platform which uses unsigned 64 bit integers.
- Since:
- RFT1.1
- See Also:
- Serialized Form
Constructor Summary |
UInt64(java.math.BigInteger big)
|
UInt64(long value)
Constructs from a signed 64 bit long value, the bits are treated as if they
represented an unsigned value. |
UInt64(java.lang.String s)
Constructs from a string. |
Methods inherited from class java.lang.Number |
byteValue, shortValue |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
value
protected long value
MIN_VALUE
public static final UInt64 MIN_VALUE
MIN_VALUE_BIG_FORMAT
public static final java.math.BigInteger MIN_VALUE_BIG_FORMAT
MAX_VALUE
public static final UInt64 MAX_VALUE
MAX_VALUE_BIG_FORMAT
public static final java.math.BigInteger MAX_VALUE_BIG_FORMAT
UInt64
public UInt64(long value)
- Constructs from a signed 64 bit long value, the bits are treated as if they
represented an unsigned value.
UInt64
public UInt64(java.lang.String s)
- Constructs from a string.
UInt64
public UInt64(java.math.BigInteger big)
toString
public java.lang.String toString()
- Since:
- RFT1.1
toHexString
public java.lang.String toHexString()
- Since:
- RFT1.1
valueOf
public static UInt64 valueOf(java.lang.String s)
- Since:
- RFT1.1
valueOf
public static UInt64 valueOf(java.lang.String s,
int radix)
- Since:
- RFT1.1
compareTo
public int compareTo(UInt64 anotherUInt)
- Since:
- RFT1.1
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interface java.lang.Comparable
- Since:
- RFT1.1
equals
public boolean equals(java.lang.Object o)
- Since:
- RFT1.1
hashCode
public int hashCode()
- Since:
- RFT1.1
floatValue
public float floatValue()
- Since:
- RFT1.1
doubleValue
public double doubleValue()
- Since:
- RFT1.1
intValue
public int intValue()
- Since:
- RFT1.1
longValue
public long longValue()
- Since:
- RFT1.1
getBigInteger
public java.math.BigInteger getBigInteger()
- Since:
- RFT1.1