Class Holder<V>

  • Type Parameters:
    V - The type of object referred to by this reference.
    Direct Known Subclasses:
    BooleanHolder

    @Deprecated
    public class Holder<V>
    extends java.lang.Object
    Deprecated.
    Use AtomicReference.
    Provides a place to hold values generated inside of a Lambda expression.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private V value
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      Holder()
      Deprecated.
       
      Holder​(V defaultValue)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      V get()
      Deprecated.
       
      void set​(V value)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

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

      • value

        private V value
        Deprecated.
    • Constructor Detail

      • Holder

        public Holder()
        Deprecated.
      • Holder

        public Holder​(V defaultValue)
        Deprecated.
    • Method Detail

      • set

        public void set​(V value)
        Deprecated.
      • get

        public V get()
        Deprecated.