Package io.kjson
Enum JSONBoolean
-
- All Implemented Interfaces:
-
io.kjson.JSONPrimitive,io.kjson.JSONValue,java.io.Serializable,kotlin.Comparable
public enum JSONBoolean extends Enum<JSONBoolean> implements JSONPrimitive<Boolean>
A JSON boolean value.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classJSONBoolean.Companion
-
Method Summary
Modifier and Type Method Description StringtoJSON()Convert to a JSON string. UnitappendTo(Appendable a)Append as a JSON string to an Appendable. StringtoString()Convert the value to String. final JSONBooleanvalueOf(String value)Returns the enum constant of this type with the specified name. final Array<JSONBoolean>values()Returns an array containing the constants of this enum type, in the order they're declared. final BooleangetAsBoolean()final BooleangetAsBooleanOrNull()BooleangetValue()The value, of the appropriate type. -
-
Method Detail
-
appendTo
Unit appendTo(Appendable a)
Append as a JSON string to an Appendable.
-
valueOf
final JSONBoolean valueOf(String value)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
-
values
final Array<JSONBoolean> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
getAsBoolean
final Boolean getAsBoolean()
-
getAsBooleanOrNull
final Boolean getAsBooleanOrNull()
-
-
-
-