Package net.pwall.yaml
Class YAMLBoolean
java.lang.Object
net.pwall.json.JSONBoolean
net.pwall.yaml.YAMLBoolean
- All Implemented Interfaces:
Serializable,net.pwall.json.JSONValue,YAMLNode,YAMLScalar
A YAML boolean scalar.
- Author:
- Peter Wall
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final YAMLBooleanstatic final YAMLBoolean -
Constructor Summary
ConstructorsConstructorDescriptionYAMLBoolean(boolean value) Construct aYAMLBooleanwith the given value and the default tag.YAMLBoolean(boolean value, String tag) Construct aYAMLBooleanwith the given value and tag. -
Method Summary
Methods inherited from class net.pwall.json.JSONBoolean
appendJSON, booleanValue, getValue, toJSON, toSimpleValue, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.pwall.json.JSONValue
appendJSON, toJSON, toSimpleValue
-
Field Details
-
defaultTag
- See Also:
-
TRUE
-
FALSE
-
-
Constructor Details
-
YAMLBoolean
Construct aYAMLBooleanwith the given value and tag.- Parameters:
value- the valuetag- the tag
-
YAMLBoolean
public YAMLBoolean(boolean value) Construct aYAMLBooleanwith the given value and the default tag.- Parameters:
value- the value
-
-
Method Details
-
getTag
Description copied from interface:YAMLNodeGet the tag of the node. -
equals
- Overrides:
equalsin classnet.pwall.json.JSONBoolean
-
hashCode
public int hashCode()- Overrides:
hashCodein classnet.pwall.json.JSONBoolean
-
valueOf
Get aYAMLBooleanfor the given value (avoid creating a new object).- Parameters:
b- the value- Returns:
- the corresponding
YAMLBoolean
-