Package org.rocksdb

Class Holder<T>


  • public class Holder<T>
    extends java.lang.Object
    Simple instance reference wrapper.
    • Constructor Summary

      Constructors 
      Constructor Description
      Holder()
      Constructs a new Holder with null instance.
      Holder​(T value)
      Constructs a new Holder.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T getValue()
      Get the instance reference.
      void setValue​(T value)
      Set the instance reference.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Holder

        public Holder()
        Constructs a new Holder with null instance.
      • Holder

        public Holder​(T value)
        Constructs a new Holder.
        Parameters:
        value - the instance or null
    • Method Detail

      • getValue

        public T getValue()
        Get the instance reference.
        Returns:
        value the instance reference or null
      • setValue

        public void setValue​(T value)
        Set the instance reference.
        Parameters:
        value - the instance reference or null