W3cubDocs

/OpenJDK 8 Web

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

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.

Methods

Methods inherited from class java.lang.Object

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

© 1993–2017, 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.