Class Holder<T>

  • Type Parameters:
    T - Type of the value in the holder.
    All Implemented Interfaces:
    Serializable

    public final class Holder<T>
    extends Object
    implements Serializable
    Holds a value of type T.
    Since:
    1.6, JAX-WS 2.0
    See Also:
    Serialized Form
    • Field Detail

      • value

        public T value
        The value contained in the holder.
    • Constructor Detail

      • Holder

        public Holder()
        Creates a new holder with a null value.
      • Holder

        public Holder​(T value)
        Create a new holder with the specified value.
        Parameters:
        value - The value to be stored in the holder.