Package 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 java.lang.Object implements ByReference<T>
An abstract class for common PrimitiveReference functionality
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractReference(T value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
fromNative, nativeSize, toNative
-
-
-
-
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 interfaceByReference<T>
- Returns:
- the current value.
-
-