01: /*
02: * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
03: * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
04: */
05:
06: package javax.xml.ws;
07:
08: /**
09: * Holds a value of type <code>T</code>.
10: *
11: * @since JAX-WS 2.0
12: **/
13: public final class Holder<T> {
14:
15: /**
16: * The value contained in the holder.
17: **/
18: public T value;
19:
20: /**
21: * Creates a new holder with a <code>null</code> value.
22: **/
23: public Holder() {
24: }
25:
26: /**
27: * Create a new holder with the specified value.
28: *
29: * @param value The value to be stored in the holder.
30: **/
31: public Holder(T value) {
32: this.value = value;
33: }
34: }
|