org.openjena.atlas.json
Class JsonArray
java.lang.Object
org.openjena.atlas.json.JsonValue
org.openjena.atlas.json.JsonArray
- All Implemented Interfaces:
- Iterable<JsonValue>, Collection<JsonValue>, List<JsonValue>, Printable
public class JsonArray
- extends JsonValue
- implements List<JsonValue>
Methods inherited from class org.openjena.atlas.json.JsonValue |
getAsBoolean, getAsNumber, getAsObject, getAsString, isBoolean, isNull, isNumber, isObject, isPrimitive, isString, output, toString |
JsonArray
public JsonArray()
isArray
public boolean isArray()
- Overrides:
isArray
in class JsonValue
getAsArray
public JsonArray getAsArray()
- Overrides:
getAsArray
in class JsonValue
hashCode
public int hashCode()
- Specified by:
hashCode
in interface Collection<JsonValue>
- Specified by:
hashCode
in interface List<JsonValue>
- Specified by:
hashCode
in class JsonValue
equals
public boolean equals(Object other)
- Specified by:
equals
in interface Collection<JsonValue>
- Specified by:
equals
in interface List<JsonValue>
- Specified by:
equals
in class JsonValue
visit
public void visit(JsonVisitor visitor)
- Specified by:
visit
in class JsonValue
add
public boolean add(JsonValue e)
- Specified by:
add
in interface Collection<JsonValue>
- Specified by:
add
in interface List<JsonValue>
add
public boolean add(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 interface List<JsonValue>
addAll
public boolean addAll(Collection<? extends JsonValue> c)
- Specified by:
addAll
in interface Collection<JsonValue>
- Specified by:
addAll
in interface List<JsonValue>
addAll
public boolean addAll(int index,
Collection<? extends JsonValue> c)
- Specified by:
addAll
in interface List<JsonValue>
clear
public void clear()
- Specified by:
clear
in interface Collection<JsonValue>
- Specified by:
clear
in interface List<JsonValue>
contains
public boolean contains(Object object)
- Specified by:
contains
in interface Collection<JsonValue>
- Specified by:
contains
in interface List<JsonValue>
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAll
in interface Collection<JsonValue>
- Specified by:
containsAll
in interface List<JsonValue>
get
public JsonValue get(int index)
- Specified by:
get
in interface List<JsonValue>
indexOf
public int indexOf(Object o)
- Specified by:
indexOf
in interface List<JsonValue>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface Collection<JsonValue>
- Specified by:
isEmpty
in interface List<JsonValue>
iterator
public Iterator<JsonValue> iterator()
- Specified by:
iterator
in interface Iterable<JsonValue>
- Specified by:
iterator
in interface Collection<JsonValue>
- Specified by:
iterator
in interface List<JsonValue>
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOf
in interface List<JsonValue>
listIterator
public ListIterator<JsonValue> listIterator()
- Specified by:
listIterator
in interface List<JsonValue>
listIterator
public ListIterator<JsonValue> listIterator(int index)
- Specified by:
listIterator
in interface List<JsonValue>
remove
public boolean remove(Object o)
- Specified by:
remove
in interface Collection<JsonValue>
- Specified by:
remove
in interface List<JsonValue>
remove
public JsonValue remove(int index)
- Specified by:
remove
in interface List<JsonValue>
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll
in interface Collection<JsonValue>
- Specified by:
removeAll
in interface List<JsonValue>
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAll
in interface Collection<JsonValue>
- Specified by:
retainAll
in interface List<JsonValue>
set
public JsonValue set(int index,
JsonValue element)
- Specified by:
set
in interface List<JsonValue>
size
public int size()
- Specified by:
size
in interface Collection<JsonValue>
- Specified by:
size
in interface List<JsonValue>
subList
public List<JsonValue> subList(int fromIndex,
int toIndex)
- Specified by:
subList
in interface List<JsonValue>
toArray
public Object[] toArray()
- Specified by:
toArray
in interface Collection<JsonValue>
- Specified by:
toArray
in interface List<JsonValue>
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArray
in interface Collection<JsonValue>
- Specified by:
toArray
in interface List<JsonValue>
Licenced under the Apache License, Version 2.0