-
- All Implemented Interfaces:
-
io.kjson.JSONValue,kotlin.collections.Collection,kotlin.collections.Iterable,kotlin.collections.List
public final class JSONArray implements JSONValue, 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)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)List<JSONValue>subList(Integer fromIndex, Integer toIndex)Booleanequals(Object other)IntegerhashCode()StringtoString()-
Methods inherited from class io.kjson.JSONArray
spliterator, toJSON -
Methods inherited from class kotlin.collections.Collection
forEach -
Methods inherited from class kotlin.collections.List
parallelStream, stream -
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)
-
containsAll
Boolean containsAll(Collection<JSONValue> elements)
-
lastIndexOf
Integer lastIndexOf(JSONValue element)
-
listIterator
ListIterator<JSONValue> listIterator()
-
listIterator
ListIterator<JSONValue> listIterator(Integer index)
-
-
-
-