Class Holder<T>

  • Type Parameters:
    T - the type of value held by this Holder

    public class Holder<T>
    extends Object
    Holder of an object.
    Since:
    4.3
    • Constructor Detail

      • Holder

        public Holder​(T value)

        Constructor for Holder.

        Parameters:
        value - is the initial value that is set(Object)
    • Method Detail

      • get

        public T get()
        Get the value held by this Holder
        Returns:
        the value held by this Holder
      • set

        public void set​(T value)
        Set a new value held by this Holder
        Parameters:
        value - to be set as new value held by this Holder