View Javadoc

1   /***** Copyright (c) 1999 Object Management Group. Unlimited rights to 
2          duplicate and use this code are hereby granted provided that this 
3          copyright notice is included.
4   *****/
5   
6   package org.omg.CORBA;
7   
8   final public class DoubleHolder implements org.omg.CORBA.portable.Streamable {
9   
10      public double value;
11  
12      public DoubleHolder() {
13      }
14  
15      public DoubleHolder(double initial) {
16          value = initial;
17      }
18  
19      public void _read(org.omg.CORBA.portable.InputStream is) {
20          value = is.read_double();
21      }
22  
23      public void _write(org.omg.CORBA.portable.OutputStream os) {
24          os.write_double(value);
25      }
26  
27      public org.omg.CORBA.TypeCode _type() {
28          return org.omg.CORBA.ORB.init().get_primitive_tc(TCKind.tk_double);
29      }
30  
31  }