com.sun.jna

Class IntegerType

public abstract class IntegerType extends Number implements NativeMapped

Represents a native integer value, which may have a platform-specific size (e.g. long on unix-based platforms).

Author: wmeissner@gmail.com

Constructor Summary
IntegerType(int size)
Create a zero-valued IntegerType.
IntegerType(int size, long value)
Create a IntegerType with the given value.
Method Summary
doubledoubleValue()
booleanequals(Object rhs)
floatfloatValue()
ObjectfromNative(Object nativeValue, FromNativeContext context)
inthashCode()
intintValue()
longlongValue()
ClassnativeType()
voidsetValue(long value)
Change the value for this data.
ObjecttoNative()
StringtoString()

Constructor Detail

IntegerType

public IntegerType(int size)
Create a zero-valued IntegerType.

IntegerType

public IntegerType(int size, long value)
Create a IntegerType with the given value.

Method Detail

doubleValue

public double doubleValue()

equals

public boolean equals(Object rhs)

floatValue

public float floatValue()

fromNative

public Object fromNative(Object nativeValue, FromNativeContext context)

hashCode

public int hashCode()

intValue

public int intValue()

longValue

public long longValue()

nativeType

public Class nativeType()

setValue

public void setValue(long value)
Change the value for this data.

toNative

public Object toNative()

toString

public String toString()
Copyright © 2007-2009 Timothy Wall. All Rights Reserved.