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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
add
(boolean b) void
boolean
add
(long val) boolean
boolean
boolean
addAll
(int index, Collection<? extends JsonValue> c) boolean
addAll
(Collection<? extends JsonValue> c) void
clear()
boolean
boolean
containsAll
(Collection<?> c) boolean
get
(int index) int
hashCode()
int
boolean
isArray()
boolean
isEmpty()
iterator()
int
listIterator
(int index) remove
(int index) boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) int
size()
subList
(int fromIndex, int toIndex) Object[]
toArray()
<T> T[]
toArray
(T[] a) void
visit
(JsonVisitor visitor) Methods inherited from class org.apache.jena.atlas.json.JsonValue
getAsBoolean, getAsNumber, getAsObject, getAsString, isBoolean, isNull, isNumber, isObject, isPrimitive, isString, output, toString
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
replaceAll, sort, spliterator
-
Constructor Details
-
JsonArray
public JsonArray()
-
-
Method Details
-
isArray
public boolean isArray() -
getAsArray
- Overrides:
getAsArray
in 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:
containsAll
in interfaceCollection<JsonValue>
- Specified by:
containsAll
in interfaceList<JsonValue>
-
get
-
indexOf
-
isEmpty
public boolean isEmpty() -
iterator
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<JsonValue>
-
listIterator
- Specified by:
listIterator
in interfaceList<JsonValue>
-
listIterator
- Specified by:
listIterator
in interfaceList<JsonValue>
-
remove
-
remove
-
removeAll
-
retainAll
-
set
-
size
public int size() -
subList
-
toArray
-
toArray
public <T> T[] toArray(T[] a)
-