-
- 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()UnitappendTo(Appendable a)StringtoString()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()-
-
Method Detail
-
appendTo
Unit appendTo(Appendable a)
-
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()
-
-
-
-