Package javax.xml.ws
Class Holder<T>
- java.lang.Object
-
- javax.xml.ws.Holder<T>
-
- Type Parameters:
T
- Type of the value in the holder.
- All Implemented Interfaces:
java.io.Serializable
public final class Holder<T> extends java.lang.Object implements java.io.Serializable
Holds a value of typeT
.- Since:
- 1.6, JAX-WS 2.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
T
value
The value contained in the holder.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
value
public T value
The value contained in the holder.
-
-
Constructor Detail
-
Holder
public Holder()
Creates a new holder with anull
value.
-
Holder
public Holder(T value)
Create a new holder with the specified value.- Parameters:
value
- The value to be stored in the holder.
-
-