public class YAMLBoolean extends net.pwall.json.JSONBoolean implements YAMLScalar
| Modifier and Type | Field and Description |
|---|---|
static String |
defaultTag |
static YAMLBoolean |
FALSE |
static YAMLBoolean |
TRUE |
| Constructor and Description |
|---|
YAMLBoolean(boolean value)
Construct a
YAMLBoolean with the given value and the default tag. |
YAMLBoolean(boolean value,
String tag)
Construct a
YAMLBoolean with the given value and tag. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
String |
getTag()
Get the tag of the node.
|
int |
hashCode() |
static YAMLBoolean |
valueOf(boolean b)
Get a
YAMLBoolean for the given value (avoid creating a new object). |
appendJSON, booleanValue, getValue, toJSON, toSimpleValue, toStringpublic static final String defaultTag
public static final YAMLBoolean TRUE
public static final YAMLBoolean FALSE
public YAMLBoolean(boolean value,
String tag)
YAMLBoolean with the given value and tag.value - the valuetag - the tagpublic YAMLBoolean(boolean value)
YAMLBoolean with the given value and the default tag.value - the valuepublic boolean equals(Object other)
equals in class net.pwall.json.JSONBooleanpublic int hashCode()
hashCode in class net.pwall.json.JSONBooleanpublic static YAMLBoolean valueOf(boolean b)
YAMLBoolean for the given value (avoid creating a new object).b - the valueYAMLBooleanCopyright © 2021. All rights reserved.