org.openjena.atlas.json
Class JsonArray
java.lang.Object
org.openjena.atlas.json.JsonValue
org.openjena.atlas.json.JsonArray
- All Implemented Interfaces:
- java.lang.Iterable<JsonValue>, java.util.Collection<JsonValue>, java.util.List<JsonValue>, Printable
public class JsonArray
- extends JsonValue
- implements java.util.List<JsonValue>
| Methods inherited from class org.openjena.atlas.json.JsonValue |
getAsBoolean, getAsNumber, getAsObject, getAsString, isBoolean, isNull, isNumber, isObject, isPrimitive, isString, output, toString |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
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 java.util.Collection<JsonValue>- Specified by:
hashCode in interface java.util.List<JsonValue>- Specified by:
hashCode in class JsonValue
equals
public boolean equals(java.lang.Object other)
- Specified by:
equals in interface java.util.Collection<JsonValue>- Specified by:
equals in interface java.util.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 java.util.Collection<JsonValue>- Specified by:
add in interface java.util.List<JsonValue>
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 interface java.util.List<JsonValue>
addAll
public boolean addAll(java.util.Collection<? extends JsonValue> c)
- Specified by:
addAll in interface java.util.Collection<JsonValue>- Specified by:
addAll in interface java.util.List<JsonValue>
addAll
public boolean addAll(int index,
java.util.Collection<? extends JsonValue> c)
- Specified by:
addAll in interface java.util.List<JsonValue>
clear
public void clear()
- Specified by:
clear in interface java.util.Collection<JsonValue>- Specified by:
clear in interface java.util.List<JsonValue>
contains
public boolean contains(java.lang.Object object)
- Specified by:
contains in interface java.util.Collection<JsonValue>- Specified by:
contains in interface java.util.List<JsonValue>
containsAll
public boolean containsAll(java.util.Collection<?> c)
- Specified by:
containsAll in interface java.util.Collection<JsonValue>- Specified by:
containsAll in interface java.util.List<JsonValue>
get
public JsonValue get(int index)
- Specified by:
get in interface java.util.List<JsonValue>
indexOf
public int indexOf(java.lang.Object o)
- Specified by:
indexOf in interface java.util.List<JsonValue>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface java.util.Collection<JsonValue>- Specified by:
isEmpty in interface java.util.List<JsonValue>
iterator
public java.util.Iterator<JsonValue> iterator()
- Specified by:
iterator in interface java.lang.Iterable<JsonValue>- Specified by:
iterator in interface java.util.Collection<JsonValue>- Specified by:
iterator in interface java.util.List<JsonValue>
lastIndexOf
public int lastIndexOf(java.lang.Object o)
- Specified by:
lastIndexOf in interface java.util.List<JsonValue>
listIterator
public java.util.ListIterator<JsonValue> listIterator()
- Specified by:
listIterator in interface java.util.List<JsonValue>
listIterator
public java.util.ListIterator<JsonValue> listIterator(int index)
- Specified by:
listIterator in interface java.util.List<JsonValue>
remove
public boolean remove(java.lang.Object o)
- Specified by:
remove in interface java.util.Collection<JsonValue>- Specified by:
remove in interface java.util.List<JsonValue>
remove
public JsonValue remove(int index)
- Specified by:
remove in interface java.util.List<JsonValue>
removeAll
public boolean removeAll(java.util.Collection<?> c)
- Specified by:
removeAll in interface java.util.Collection<JsonValue>- Specified by:
removeAll in interface java.util.List<JsonValue>
retainAll
public boolean retainAll(java.util.Collection<?> c)
- Specified by:
retainAll in interface java.util.Collection<JsonValue>- Specified by:
retainAll in interface java.util.List<JsonValue>
set
public JsonValue set(int index,
JsonValue element)
- Specified by:
set in interface java.util.List<JsonValue>
size
public int size()
- Specified by:
size in interface java.util.Collection<JsonValue>- Specified by:
size in interface java.util.List<JsonValue>
subList
public java.util.List<JsonValue> subList(int fromIndex,
int toIndex)
- Specified by:
subList in interface java.util.List<JsonValue>
toArray
public java.lang.Object[] toArray()
- Specified by:
toArray in interface java.util.Collection<JsonValue>- Specified by:
toArray in interface java.util.List<JsonValue>
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArray in interface java.util.Collection<JsonValue>- Specified by:
toArray in interface java.util.List<JsonValue>
Copyright ? 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP Copyright ? 2010 Talis Systems Ltd. Copyright ? 2010, 2011 Epimorphics Ltd.