public final class Holder<T> extends Object implements Serializable
Holds a value of type T
.
public T value
The value contained in the holder.
public Holder()
Creates a new holder with a null
value.
public Holder(T value)
Create a new holder with the specified value.
value
- The value to be stored in the holder.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.