Package org.apache.jena.atlas.json
Class JsonArray
- java.lang.Object
-
- org.apache.jena.atlas.json.JsonValue
-
- org.apache.jena.atlas.json.JsonArray
-
-
Constructor Summary
Constructors Constructor Description JsonArray()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(boolean b)voidadd(int index, JsonValue element)booleanadd(long val)booleanadd(java.lang.String e)booleanadd(JsonValue e)booleanaddAll(int index, java.util.Collection<? extends JsonValue> c)booleanaddAll(java.util.Collection<? extends JsonValue> c)voidclear()booleancontains(java.lang.Object object)booleancontainsAll(java.util.Collection<?> c)booleanequals(java.lang.Object other)JsonValueget(int index)JsonArraygetAsArray()inthashCode()intindexOf(java.lang.Object o)booleanisArray()booleanisEmpty()java.util.Iterator<JsonValue>iterator()intlastIndexOf(java.lang.Object o)java.util.ListIterator<JsonValue>listIterator()java.util.ListIterator<JsonValue>listIterator(int index)JsonValueremove(int index)booleanremove(java.lang.Object o)booleanremoveAll(java.util.Collection<?> c)booleanretainAll(java.util.Collection<?> c)JsonValueset(int index, JsonValue element)intsize()java.util.List<JsonValue>subList(int fromIndex, int toIndex)java.lang.Object[]toArray()<T> T[]toArray(T[] a)voidvisit(JsonVisitor visitor)-
Methods inherited from class org.apache.jena.atlas.json.JsonValue
getAsBoolean, getAsNumber, getAsObject, getAsString, isBoolean, isNull, isNumber, isObject, isPrimitive, isString, output, toString
-
-
-
-
Method Detail
-
getAsArray
public JsonArray getAsArray()
- Overrides:
getAsArrayin classJsonValue
-
hashCode
public int hashCode()
-
equals
public boolean equals(java.lang.Object other)
-
visit
public void visit(JsonVisitor visitor)
-
add
public boolean add(JsonValue e)
-
add
public boolean add(java.lang.String e)
-
add
public boolean add(long val)
-
add
public boolean add(boolean b)
-
add
public void add(int index, JsonValue element)- Specified by:
addin interfacejava.util.List<JsonValue>
-
addAll
public boolean addAll(java.util.Collection<? extends JsonValue> c)
-
addAll
public boolean addAll(int index, java.util.Collection<? extends JsonValue> c)- Specified by:
addAllin interfacejava.util.List<JsonValue>
-
clear
public void clear()
-
contains
public boolean contains(java.lang.Object object)
-
containsAll
public boolean containsAll(java.util.Collection<?> c)
-
indexOf
public int indexOf(java.lang.Object o)
- Specified by:
indexOfin interfacejava.util.List<JsonValue>
-
isEmpty
public boolean isEmpty()
-
iterator
public java.util.Iterator<JsonValue> iterator()
-
lastIndexOf
public int lastIndexOf(java.lang.Object o)
- Specified by:
lastIndexOfin interfacejava.util.List<JsonValue>
-
listIterator
public java.util.ListIterator<JsonValue> listIterator()
- Specified by:
listIteratorin interfacejava.util.List<JsonValue>
-
listIterator
public java.util.ListIterator<JsonValue> listIterator(int index)
- Specified by:
listIteratorin interfacejava.util.List<JsonValue>
-
remove
public boolean remove(java.lang.Object o)
-
remove
public JsonValue remove(int index)
- Specified by:
removein interfacejava.util.List<JsonValue>
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
-
retainAll
public boolean retainAll(java.util.Collection<?> c)
-
set
public JsonValue set(int index, JsonValue element)
- Specified by:
setin interfacejava.util.List<JsonValue>
-
size
public int size()
-
subList
public java.util.List<JsonValue> subList(int fromIndex, int toIndex)
- Specified by:
subListin interfacejava.util.List<JsonValue>
-
toArray
public java.lang.Object[] toArray()
-
-