-
- All Implemented Interfaces:
-
io.kjson.JSONPrimitive,io.kjson.JSONValue,kotlin.CharSequence
public final class JSONString implements JSONPrimitive<String>, CharSequence
A JSON string value.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classJSONString.Companion
-
Constructor Summary
Constructors Constructor Description JSONString(String value)
-
Method Summary
Modifier and Type Method Description IntegergetLength()final StringgetAsString()final StringgetAsStringOrNull()StringgetValue()Characterget(Integer index)JSONStringsubSequence(Integer startIndex, Integer endIndex)UnitappendTo(Appendable a)Unitoutput(IntConsumer out)UnitcoOutput(SuspendFunction1<Character, Unit> out)Booleanequals(Object other)IntegerhashCode()StringtoString()-
-
Constructor Detail
-
JSONString
JSONString(String value)
-
-
Method Detail
-
getAsString
final String getAsString()
-
getAsStringOrNull
final String getAsStringOrNull()
-
subSequence
JSONString subSequence(Integer startIndex, Integer endIndex)
-
appendTo
Unit appendTo(Appendable a)
-
output
Unit output(IntConsumer out)
-
coOutput
Unit coOutput(SuspendFunction1<Character, Unit> out)
-
-
-
-