Class Holder<T>

All Implemented Interfaces:
Serializable

public final class Holder<T>
extends Object
implements Serializable

Holds a value of type T.

Since:
JAX-WS 2.0
See Also:
Serialized Form

Fields

Modifier and Type Field and Description
T value

The value contained in the holder.

Constructors

Constructor and Description
Holder()

Creates a new holder with a null value.

Holder(T value)

Create a new holder with the specified value.

Methods

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

value

public T value

The value contained in the holder.

Constructors

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.

© 1993, 2020, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/javase/8/docs/api/javax/xml/ws/Holder.html