|
JNA API> 3.2.7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Number
com.sun.jna.IntegerType
public abstract class IntegerType
Represents a native integer value, which may have a platform-specific size
(e.g. long
on unix-based platforms).
Constructor Summary | |
---|---|
IntegerType(int size)
Create a zero-valued IntegerType. |
|
IntegerType(int size,
long value)
Create a IntegerType with the given value. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Number |
---|
byteValue, shortValue |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IntegerType(int size)
public IntegerType(int size, long value)
Method Detail |
---|
public void setValue(long value)
public java.lang.Object toNative()
NativeMapped
toNative
in interface NativeMapped
public java.lang.Object fromNative(java.lang.Object nativeValue, FromNativeContext context)
NativeMapped
fromNative
in interface NativeMapped
public java.lang.Class nativeType()
NativeMapped
nativeType
in interface NativeMapped
public int intValue()
intValue
in class java.lang.Number
public long longValue()
longValue
in class java.lang.Number
public float floatValue()
floatValue
in class java.lang.Number
public double doubleValue()
doubleValue
in class java.lang.Number
public boolean equals(java.lang.Object rhs)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
JNA API> 3.2.7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |