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