Top Description Fields Constructors Methods
jnr.ffi.byref

public abstract Class AbstractReference<T>

extends Object
implements ByReference<T>
Class Inheritance
All Implemented Interfaces
jnr.ffi.byref.ByReference
Known Direct Subclasses
jnr.ffi.byref.AddressByReference, jnr.ffi.byref.PointerByReference

An abstract class for common PrimitiveReference functionality

Field Summary

Modifier and TypeField and Description
pack-priv T

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
protected static <T> T
checkNull(T value)

public T

Returns:

the current value.
getValue
()

Implements jnr.ffi.byref.ByReference.getValue.

Gets the current value the reference points to.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

valueback to summary
pack-priv T value

Constructor Detail

AbstractReferenceback to summary
protected AbstractReference(T value)

Method Detail

checkNullback to summary
protected static <T> T checkNull(T value)
getValueback to summary
public T getValue()

Implements jnr.ffi.byref.ByReference.getValue.

Gets the current value the reference points to.

Returns:T

the current value.