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 boolean
add(boolean b)
void
add(int index, JsonValue element)
boolean
add(long val)
boolean
add(java.lang.String e)
boolean
add(JsonValue e)
boolean
addAll(int index, java.util.Collection<? extends JsonValue> c)
boolean
addAll(java.util.Collection<? extends JsonValue> c)
void
clear()
boolean
contains(java.lang.Object object)
boolean
containsAll(java.util.Collection<?> c)
boolean
equals(java.lang.Object other)
JsonValue
get(int index)
JsonArray
getAsArray()
int
hashCode()
int
indexOf(java.lang.Object o)
boolean
isArray()
boolean
isEmpty()
java.util.Iterator<JsonValue>
iterator()
int
lastIndexOf(java.lang.Object o)
java.util.ListIterator<JsonValue>
listIterator()
java.util.ListIterator<JsonValue>
listIterator(int index)
JsonValue
remove(int index)
boolean
remove(java.lang.Object o)
boolean
removeAll(java.util.Collection<?> c)
boolean
retainAll(java.util.Collection<?> c)
JsonValue
set(int index, JsonValue element)
int
size()
java.util.List<JsonValue>
subList(int fromIndex, int toIndex)
java.lang.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
-
-
-
-
Method Detail
-
getAsArray
public JsonArray getAsArray()
- Overrides:
getAsArray
in 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:
add
in 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:
addAll
in 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:
indexOf
in 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:
lastIndexOf
in interfacejava.util.List<JsonValue>
-
listIterator
public java.util.ListIterator<JsonValue> listIterator()
- Specified by:
listIterator
in interfacejava.util.List<JsonValue>
-
listIterator
public java.util.ListIterator<JsonValue> listIterator(int index)
- Specified by:
listIterator
in interfacejava.util.List<JsonValue>
-
remove
public boolean remove(java.lang.Object o)
-
remove
public JsonValue remove(int index)
- Specified by:
remove
in 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:
set
in interfacejava.util.List<JsonValue>
-
size
public int size()
-
subList
public java.util.List<JsonValue> subList(int fromIndex, int toIndex)
- Specified by:
subList
in interfacejava.util.List<JsonValue>
-
toArray
public java.lang.Object[] toArray()
-
-