KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > xml > ws > Holder


1 /*
2  * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
3  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
4  */

5
6 package javax.xml.ws;
7
8 /**
9  * 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 }
35
Popular Tags