01: package argparser;
02:
03: /**
04: * Wrapper class which ``holds'' a double value,
05: * enabling methods to return double values through
06: * arguments.
07: */
08: public class DoubleHolder implements java.io.Serializable {
09: /**
10: * Value of the double, set and examined
11: * by the application as needed.
12: */
13: public double value;
14:
15: /**
16: * Constructs a new <code>DoubleHolder</code> with an initial
17: * value of 0.
18: */
19: public DoubleHolder() {
20: value = 0;
21: }
22:
23: /**
24: * Constructs a new <code>DoubleHolder</code> with a
25: * specific initial value.
26: *
27: * @param d Initial double value.
28: */
29: public DoubleHolder(double d) {
30: value = d;
31: }
32: }
|