java.lang.Object
org.apache.jena.atlas.json.JsonValue
org.apache.jena.atlas.json.JsonArray
- All Implemented Interfaces:
Iterable<JsonValue>,Collection<JsonValue>,List<JsonValue>,org.apache.jena.atlas.io.Printable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(boolean b) voidbooleanadd(long val) booleanbooleanbooleanaddAll(int index, Collection<? extends JsonValue> c) booleanaddAll(Collection<? extends JsonValue> c) voidclear()booleanbooleancontainsAll(Collection<?> c) booleanget(int index) inthashCode()intbooleanisArray()booleanisEmpty()iterator()intlistIterator(int index) remove(int index) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()subList(int fromIndex, int toIndex) 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, toStringMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
replaceAll, sort, spliterator
-
Constructor Details
-
JsonArray
public JsonArray()
-
-
Method Details
-
isArray
public boolean isArray() -
getAsArray
- Overrides:
getAsArrayin classJsonValue
-
hashCode
public int hashCode() -
equals
-
visit
-
add
-
add
-
add
public boolean add(long val) -
add
public boolean add(boolean b) -
add
-
addAll
-
addAll
-
clear
public void clear() -
contains
-
containsAll
- Specified by:
containsAllin interfaceCollection<JsonValue>- Specified by:
containsAllin interfaceList<JsonValue>
-
get
-
indexOf
-
isEmpty
public boolean isEmpty() -
iterator
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<JsonValue>
-
listIterator
- Specified by:
listIteratorin interfaceList<JsonValue>
-
listIterator
- Specified by:
listIteratorin interfaceList<JsonValue>
-
remove
-
remove
-
removeAll
-
retainAll
-
set
-
size
public int size() -
subList
-
toArray
-
toArray
public <T> T[] toArray(T[] a)
-