-
- All Implemented Interfaces:
-
io.kjson.JSONStructure,io.kjson.JSONValue,kotlin.collections.Collection,kotlin.collections.Iterable,kotlin.collections.List
public final class JSONArray implements JSONStructure, List<JSONValue>
A JSON array. As allowed by the JSON specification, array members may be primitive types, objects, other arrays or
null.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classJSONArray.Companionpublic final classJSONArray.Builder
-
Method Summary
Modifier and Type Method Description IntegergetSize()UnitappendTo(Appendable a)Unitoutput(IntConsumer out)UnitcoOutput(SuspendFunction1<Character, Unit> out)BooleanisEmpty()Booleancontains(JSONValue element)Iterator<JSONValue>iterator()BooleancontainsAll(Collection<JSONValue> elements)JSONValueget(Integer index)IntegerindexOf(JSONValue element)IntegerlastIndexOf(JSONValue element)ListIterator<JSONValue>listIterator()ListIterator<JSONValue>listIterator(Integer index)JSONArraysubList(Integer fromIndex, Integer toIndex)Booleanequals(Object other)IntegerhashCode()StringtoString()-
Methods inherited from class io.kjson.JSONStructure
toJSON -
Methods inherited from class kotlin.collections.Collection
forEach -
Methods inherited from class kotlin.collections.List
parallelStream, stream -
Methods inherited from class io.kjson.JSONArray
spliterator -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
appendTo
Unit appendTo(Appendable a)
-
output
Unit output(IntConsumer out)
-
coOutput
Unit coOutput(SuspendFunction1<Character, Unit> out)
-
containsAll
Boolean containsAll(Collection<JSONValue> elements)
-
lastIndexOf
Integer lastIndexOf(JSONValue element)
-
listIterator
ListIterator<JSONValue> listIterator()
-
listIterator
ListIterator<JSONValue> listIterator(Integer index)
-
-
-
-