public class BooleanValueImpl extends AbstractValue implements BooleanValue
Modifier and Type | Field and Description |
---|---|
static BooleanValue |
FALSE |
static BooleanValue |
TRUE |
NUMBER_TYPE_MASK, RAW_TYPE_MASK
Constructor and Description |
---|
BooleanValueImpl(boolean value) |
Modifier and Type | Method and Description |
---|---|
void |
accept(ValueVisitor visitor) |
boolean |
equals(java.lang.Object o) |
ValueType |
getValueType() |
int |
hashCode() |
boolean |
toBoolean() |
java.lang.String |
toString() |
BooleanValue |
toValue()
Create an immutable value from this reference
|
void |
writeTo(MessagePacker packer) |
isRef
as, as, asArrayValue, asBinary, asBoolean, asExtended, asFloat, asInteger, asMapValue, asNil, asNumber, asRaw, asString, getArrayCursor, getMapCursor, isArray, isBinary, isBoolean, isExtended, isFloat, isInteger, isMap, isNil, isNumber, isRaw, isString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asArrayValue, asMapValue
public static BooleanValue TRUE
public static BooleanValue FALSE
public ValueType getValueType()
getValueType
in interface ValueRef
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public boolean toBoolean()
toBoolean
in interface BooleanValue
public void writeTo(MessagePacker packer) throws java.io.IOException
public void accept(ValueVisitor visitor)
public BooleanValue toValue()
ValueRef
toValue
in interface BooleanValue
toValue
in interface ValueRef