30 import org.omg.CORBA.portable.OutputStream;
31
32 /**
33 * The Holder for <tt>Short</tt>. For more information on
34 * Holder files, see <a href="doc-files/generatedfiles.html#holder">
35 * "Generated Files: Holder Files"</a>.<P
36 * A Holder class for a <code>short</code>
37 * that is used to store "out" and "inout" parameters in IDL operations.
38 * If an IDL operation signature has an IDL <code>short</code> as an "out"
39 * or "inout" parameter, the programmer must pass an instance of
40 * <code>ShortHolder</code> as the corresponding
41 * parameter in the method invocation; for "inout" parameters, the programmer
42 * must also fill the "in" value to be sent to the server.
43 * Before the method invocation returns, the ORB will fill in the
44 * value corresponding to the "out" value returned from the server.
45 * <P>
46 * If <code>myShortHolder</code> is an instance of <code>ShortHolder</code>,
47 * the value stored in its <code>value</code> field can be accessed with
48 * <code>myShortHolder.value</code>.
49 *
50 * @since JDK1.2
51 */
52 public final class ShortHolder implements Streamable {
53
54 /**
55 * The <code>short</code> value held by this <code>ShortHolder</code>
56 * object.
57 */
58 public short value;
59
60 /**
61 * Constructs a new <code>ShortHolder</code> object with its
62 * <code>value</code> field initialized to <code>0</code>.
63 */
64 public ShortHolder() {
65 }
66
67 /**
68 * Constructs a new <code>ShortHolder</code> object with its
69 * <code>value</code> field initialized to the given
70 * <code>short</code>.
|
30 import org.omg.CORBA.portable.OutputStream;
31
32 /**
33 * The Holder for <tt>Short</tt>. For more information on
34 * Holder files, see <a href="doc-files/generatedfiles.html#holder">
35 * "Generated Files: Holder Files"</a>.<P
36 * A Holder class for a <code>short</code>
37 * that is used to store "out" and "inout" parameters in IDL operations.
38 * If an IDL operation signature has an IDL <code>short</code> as an "out"
39 * or "inout" parameter, the programmer must pass an instance of
40 * <code>ShortHolder</code> as the corresponding
41 * parameter in the method invocation; for "inout" parameters, the programmer
42 * must also fill the "in" value to be sent to the server.
43 * Before the method invocation returns, the ORB will fill in the
44 * value corresponding to the "out" value returned from the server.
45 * <P>
46 * If <code>myShortHolder</code> is an instance of <code>ShortHolder</code>,
47 * the value stored in its <code>value</code> field can be accessed with
48 * <code>myShortHolder.value</code>.
49 *
50 * @since 1.2
51 */
52 public final class ShortHolder implements Streamable {
53
54 /**
55 * The <code>short</code> value held by this <code>ShortHolder</code>
56 * object.
57 */
58 public short value;
59
60 /**
61 * Constructs a new <code>ShortHolder</code> object with its
62 * <code>value</code> field initialized to <code>0</code>.
63 */
64 public ShortHolder() {
65 }
66
67 /**
68 * Constructs a new <code>ShortHolder</code> object with its
69 * <code>value</code> field initialized to the given
70 * <code>short</code>.
|