public abstract class IntegerType extends java.lang.Number implements NativeMapped
long on unix-based platforms).| Constructor and Description |
|---|
IntegerType(int size)
Create a zero-valued IntegerType.
|
IntegerType(int size,
long value)
Create a IntegerType with the given value.
|
| Modifier and Type | Method and Description |
|---|---|
double |
doubleValue() |
boolean |
equals(java.lang.Object rhs) |
float |
floatValue() |
java.lang.Object |
fromNative(java.lang.Object nativeValue,
FromNativeContext context)
Convert the given native object into its Java representation using
the given context.
|
int |
hashCode() |
int |
intValue() |
long |
longValue() |
java.lang.Class |
nativeType()
Indicate the native type used by this converter.
|
void |
setValue(long value)
Change the value for this data.
|
java.lang.Object |
toNative()
Convert this object into a supported native type.
|
java.lang.String |
toString() |
public IntegerType(int size)
public IntegerType(int size,
long value)
public void setValue(long value)
public java.lang.Object toNative()
NativeMappedtoNative in interface NativeMappedpublic java.lang.Object fromNative(java.lang.Object nativeValue,
FromNativeContext context)
NativeMappedfromNative in interface NativeMappedpublic java.lang.Class nativeType()
NativeMappednativeType in interface NativeMappedpublic int intValue()
intValue in class java.lang.Numberpublic long longValue()
longValue in class java.lang.Numberpublic float floatValue()
floatValue in class java.lang.Numberpublic double doubleValue()
doubleValue in class java.lang.Numberpublic boolean equals(java.lang.Object rhs)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object