edu.iu.cnets.klatsch.lang
Class VBoolean
java.lang.Object
edu.iu.cnets.klatsch.lang.Value
edu.iu.cnets.klatsch.lang.VBoolean
public class VBoolean
- extends Value
I think you can probably guess the two possible values of this class.
Field Summary |
static VBoolean |
F
|
static VBoolean |
T
defined for convenience to save on memory churn |
boolean |
val
the value actually being stored |
Constructor Summary |
VBoolean(boolean val)
|
Method Summary |
java.lang.String |
toJson()
Returns a JSON representation of this value. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
val
public final boolean val
- the value actually being stored
T
public static final VBoolean T
- defined for convenience to save on memory churn
F
public static final VBoolean F
VBoolean
public VBoolean(boolean val)
toString
public java.lang.String toString()
- Specified by:
toString
in class Value
toJson
public java.lang.String toJson()
- Description copied from class:
Value
- Returns a JSON representation of this value. Not all values will have a useful JSON representation
(especially streams and closures), so we include a non-useful representation here as the default
behavior.
- Overrides:
toJson
in class Value
- Returns:
- the JSON representation