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 Object implements ByReference<T>
An abstract class for common PrimitiveReference functionality
  • Constructor Details

    • AbstractReference

      protected AbstractReference(T value)
  • Method Details

    • 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.