Home about services products contact login
   com.smardec

J2Native

  j2native
com.smardec.j2native
Class UInt

java.lang.Object
|
+--com.smardec.j2native.Argument
|
+--com.smardec.j2native.DelegatedArgument
|
+--com.smardec.j2native.UInt
All Implemented Interfaces:
java.lang.Cloneable, IntegerType, NumericType

public class UInt
extends DelegatedArgument
implements IntegerType

UInt represents a platform-dependent unsigned integer value and type, i.e. on 32-bits platform UInt works as UInt32.


Field Summary
Fields inherited from class com.smardec.j2native.Argument
JAVA_SIDE, NATIVE_SIDE
Constructor Summary
UInt()
Constructs a UInt object with a zero value.
UInt(long value)
Constructs a UInt object with a specified value.
Method Summary
boolean booleanValue()
Returns the value of the specified number as a boolean.
byte byteValue()
Returns the value of the specified number as a byte.
double doubleValue()
Returns the value of the specified number as a double.
float floatValue()
Returns the value of the specified number as a float.
int intValue()
Returns the value of the specified number as an int.
protected boolean isFixedLength()
Identify if Argument is a fixed length variable.
long longValue()
Returns the value of the specified number as a long.
void setValue(long value)
Sets an integer value
short shortValue()
Returns the value of the specified number as a short.
Methods inherited from class com.smardec.j2native.DelegatedArgument
finalize, free, fromBytesValue, getAlignedLength, getInternalValue, getLength, read, readFromRAM, readFromStack, restoreFromRAM, setInternalValue, storeToRAM, toBytesValue, toBytesValue, write, writeToRAM, writeToStack
Methods inherited from class com.smardec.j2native.Argument
clone, getResultFlags, update
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail
UInt
public UInt()

Constructs a UInt object with a zero value.


UInt
public UInt(long value)
Constructs a UInt object with a specified value.

Parameters:
value - value to set
Method Detail
setValue
public void setValue(long value)
Description copied from interface: IntegerType
Sets an integer value

Specified by:
setValue in interface IntegerType
Parameters:
value - integer value

longValue
public long longValue()
Description copied from interface: NumericType
Returns the value of the specified number as a long. This may involve rounding or truncation.

Specified by:
longValue in interface NumericType
Returns:
the numeric value represented by this object after conversion to type long.

intValue
public int intValue()
Description copied from interface: NumericType
Returns the value of the specified number as an int. This may involve rounding or truncation.

Specified by:
intValue in interface NumericType
Returns:
the numeric value represented by this object after conversion to type int.

shortValue
public short shortValue()
Description copied from interface: NumericType
Returns the value of the specified number as a short. This may involve rounding or truncation.

Specified by:
shortValue in interface NumericType
Returns:
the numeric value represented by this object after conversion to type short.

byteValue
public byte byteValue()
Description copied from interface: NumericType
Returns the value of the specified number as a byte. This may involve rounding or truncation.

Specified by:
byteValue in interface NumericType
Returns:
the numeric value represented by this object after conversion to type byte.

booleanValue
public boolean booleanValue()
Description copied from interface: NumericType
Returns the value of the specified number as a boolean. This may involve rounding or truncation.

Specified by:
booleanValue in interface NumericType
Returns:
the numeric value represented by this object after conversion to type boolean.

floatValue
public float floatValue()
Description copied from interface: NumericType
Returns the value of the specified number as a float. This may involve rounding.

Specified by:
floatValue in interface NumericType
Returns:
the numeric value represented by this object after conversion to type float.

doubleValue
public double doubleValue()
Description copied from interface: NumericType
Returns the value of the specified number as a double. This may involve rounding.

Specified by:
doubleValue in interface NumericType
Returns:
the numeric value represented by this object after conversion to type double.

isFixedLength
protected boolean isFixedLength()
Description copied from class: Argument
Identify if Argument is a fixed length variable.

Overrides:
isFixedLength in class DelegatedArgument
Returns:
true if it is so, and false otherwise
Home about services products contact login