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