01: package snow.utils;
02:
03: public final class CommentedBoolean {
04: private CommentedBoolean() {
05: }
06:
07: public boolean value;
08: public String comment;
09:
10: public CommentedBoolean(boolean value, String comment) {
11: this .value = value;
12: this .comment = comment;
13: }
14:
15: public static final CommentedBoolean trueC() {
16: return new CommentedBoolean(true, null);
17: }
18:
19: public static final CommentedBoolean falseC() {
20: return new CommentedBoolean(false, null);
21: }
22:
23: // public static CommentedBoolean True(String why) {return new CommentedBoolean(true,why);}
24: public static final CommentedBoolean falseC(String why) {
25: return new CommentedBoolean(false, why);
26: }
27: }
|