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
An abstract class for common PrimitiveReference functionality
-
Field Details
-
value
T value
-
-
Constructor Details
-
AbstractReference
-
-
Method Details
-
checkNull
protected static <T> T checkNull(T value) -
getValue
Gets the current value the reference points to.- Specified by:
getValue
in interfaceByReference<T>
- Returns:
- the current value.
-