edu.iu.cnets.klatsch.lang
Class VBoolean

java.lang.Object
  extended by edu.iu.cnets.klatsch.lang.Value
      extended by 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 edu.iu.cnets.klatsch.lang.Value
require, requireCount, requireType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

VBoolean

public VBoolean(boolean val)
Method Detail

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