KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SnowMailClient > utils > CommentedBoolean


1 package SnowMailClient.utils;
2
3 public final class CommentedBoolean
4 {
5
6   public boolean value ;
7   public String JavaDoc comment;
8   public CommentedBoolean(boolean value, String JavaDoc comment)
9   {
10     this.value = value;
11     this.comment = comment;
12   }
13
14   public static CommentedBoolean trueC() {return new CommentedBoolean(true,null);}
15   public static CommentedBoolean FalseC() {return new CommentedBoolean(false,null);}
16 // public static CommentedBoolean True(String why) {return new CommentedBoolean(true,why);}
17
public static CommentedBoolean FalseC(String JavaDoc why) {return new CommentedBoolean(false,why);}
18
19 }
20
Popular Tags