jnr.ffi.byref
Class AbstractReference<T>
java.lang.Object
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
|
Method Summary |
protected static
|
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 |
AbstractReference
protected AbstractReference(T value)
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.