jnr.ffi
Class StructLayout.AbstractBoolean
java.lang.Object
jnr.ffi.StructLayout.Field
jnr.ffi.StructLayout.AbstractField
jnr.ffi.StructLayout.AbstractBoolean
- Direct Known Subclasses:
- StructLayout.Boolean, StructLayout.WBOOL
- Enclosing class:
- StructLayout
protected abstract class StructLayout.AbstractBoolean
- extends StructLayout.AbstractField
Base class for Boolean fields
|
Method Summary |
abstract boolean |
get(Pointer ptr)
Gets the value for this field. |
abstract void |
set(Pointer ptr,
boolean value)
Sets the field to a new value. |
String |
toString(Pointer ptr)
Returns a string representation of this Boolean. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StructLayout.AbstractBoolean
protected StructLayout.AbstractBoolean(NativeType type)
get
public abstract boolean get(Pointer ptr)
- Gets the value for this field.
- Returns:
- a boolean.
set
public abstract void set(Pointer ptr,
boolean value)
- Sets the field to a new value.
- Parameters:
value - The new value.
toString
public String toString(Pointer ptr)
- Returns a string representation of this
Boolean.
- Returns:
- a string representation of this
Boolean.
Copyright © 2012. All Rights Reserved.