jnr.ffi.byref
Class AbstractReference<T>

java.lang.Object
  extended by jnr.ffi.byref.AbstractReference<T>
All Implemented Interfaces:
ByReference<T>
Direct Known Subclasses:
AddressByReference, PointerByReference

public abstract class AbstractReference<T>
extends Object
implements ByReference<T>

An abstract class for common PrimitiveReference functionality


Constructor Summary
protected AbstractReference(T value)
           
 
Method Summary
protected static
<T> T
checkNull(T value)
           
 T getValue()
          Gets the current value the reference points to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jnr.ffi.byref.ByReference
marshal, nativeSize, unmarshal
 

Constructor Detail

AbstractReference

protected AbstractReference(T value)
Method Detail

checkNull

protected static <T> T checkNull(T value)

getValue

public T getValue()
Gets the current value the reference points to.

Specified by:
getValue in interface ByReference<T>
Returns:
the current value.


Copyright © 2012. All Rights Reserved.