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