|
JNA API> 4.0.0 | ||||||||
| 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).
May optionally indicate an unsigned attribute, such that when a value is
extracted into a larger-sized container (e.g. int retrieved
via Number.longValue(), the value will be unsigned. Default behavior
is signed.
| Constructor Summary | |
|---|---|
IntegerType(int size)
Create a zero-valued signed IntegerType. |
|
IntegerType(int size,
boolean unsigned)
Create a zero-valued optionally unsigned IntegerType. |
|
IntegerType(int size,
long value)
Create a signed IntegerType with the given value. |
|
IntegerType(int size,
long value,
boolean unsigned)
Create an optionally signed IntegerType with the given value. |
|
| Method Summary | |
|---|---|
double |
doubleValue()
|
boolean |
equals(Object rhs)
|
float |
floatValue()
|
Object |
fromNative(Object nativeValue,
FromNativeContext context)
Convert the given native object into its Java representation using the given context. |
int |
hashCode()
|
int |
intValue()
|
long |
longValue()
|
Class |
nativeType()
Indicate the native type used by this converter. |
void |
setValue(long value)
Change the value for this data. |
Object |
toNative()
Convert this object into a supported native type. |
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,
boolean unsigned)
public IntegerType(int size,
long value)
public IntegerType(int size,
long value,
boolean unsigned)
| Method Detail |
|---|
public void setValue(long value)
public Object toNative()
NativeMapped
toNative in interface NativeMapped
public Object fromNative(Object nativeValue,
FromNativeContext context)
NativeMapped
fromNative in interface NativeMappedpublic Class nativeType()
NativeMapped
nativeType in interface NativeMappedpublic int intValue()
intValue in class Numberpublic long longValue()
longValue in class Numberpublic float floatValue()
floatValue in class Numberpublic double doubleValue()
doubleValue in class Numberpublic boolean equals(Object rhs)
equals in class Objectpublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Object
|
JNA API> 4.0.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||