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