|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jniwrapper.Parameter
com.jniwrapper.Int64
com.jniwrapper.UInt64
public class UInt64
Represents 64-bit unsigned integer type specially designed to support UINT64 native type.
Field Summary | |
---|---|
static java.math.BigInteger |
MAX_UINT64
Maximum UINT64 value. |
Fields inherited from class com.jniwrapper.Parameter |
---|
LICENSE_TYPE, V |
Constructor Summary | |
---|---|
UInt64()
|
|
UInt64(java.math.BigInteger value)
Use this constructor to create unsigned value that is bigger than Long.MAX_VALUE value. |
|
UInt64(IntegerParameter value)
|
|
UInt64(long value)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Compares two instances as IntegerParameter by their value. |
java.lang.String |
getDebugInfo()
Return debug info for JNIWrapper parameter. |
long |
getValue()
Returns internal presentation of unsigned long value. |
int |
hashCode()
|
void |
setValue(java.math.BigInteger value)
Set the unsigned long of this UInt64 from BigIngeger value. |
java.math.BigInteger |
toBigInteger()
Returns the value of this UInt64 as a
BigInteger value. |
java.lang.Long |
toLong()
|
java.lang.String |
toString()
|
Methods inherited from class com.jniwrapper.Int64 |
---|
clone, getLength, read, setValue, write |
Methods inherited from class com.jniwrapper.Parameter |
---|
acceptIOPerformer, asReturnValue, dataBufferAssigned, getAlignedLength, getAlignmentRequirement, getDataBuffer, getDataBufferOffset, indent, pop, push, read, read, setDataBuffer, toByteArray, write |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.math.BigInteger MAX_UINT64
BigInteger.valueOf(Long.MAX_VALUE).multiply(BigInteger.valueOf(2)).add(BigInteger.ONE)
Constructor Detail |
---|
public UInt64()
public UInt64(long value)
public UInt64(IntegerParameter value)
public UInt64(java.math.BigInteger value)
Long.MAX_VALUE
value.
value
- unsigned valueMethod Detail |
---|
public void setValue(java.math.BigInteger value)
UInt64
from BigIngeger
value.
value
- unsigned BigInteger
valuepublic long getValue()
unsigned long
value.
This value may be less than zero for unsigned long
values that bigger than Long.MAX_VALUE
. toBigInteger()
method.
getValue
in interface IntegerParameter
getValue
in class Int64
public java.math.BigInteger toBigInteger()
UInt64
as a
BigInteger
value.
public boolean equals(java.lang.Object obj)
IntegerParameter
by their value.
equals
in class Parameter
obj
- a value to compare this object to.
public int hashCode()
hashCode
in class Parameter
public java.lang.Long toLong()
public java.lang.String getDebugInfo()
Parameter
getDebugInfo
in class Parameter
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |