org.directwebremoting.json.types
Class JsonArray
java.lang.Object
org.directwebremoting.json.types.JsonValue
org.directwebremoting.json.types.JsonArray
- All Implemented Interfaces:
- java.lang.Iterable<JsonValue>, java.util.Collection<JsonValue>, java.util.List<JsonValue>
public class JsonArray
- extends JsonValue
- implements java.util.List<JsonValue>
- Author:
- Joe Walker [joe at getahead dot ltd dot uk]
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
JsonArray
public JsonArray()
toExternalRepresentation
public java.lang.String toExternalRepresentation()
- Description copied from class:
JsonValue
- i.e. How do we send this from one system to another?
- Specified by:
toExternalRepresentation in class JsonValue
- Returns:
- A string representing the portable version of this data
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals in interface java.util.Collection<JsonValue>- Specified by:
equals in interface java.util.List<JsonValue>- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Specified by:
hashCode in interface java.util.Collection<JsonValue>- Specified by:
hashCode in interface java.util.List<JsonValue>- Overrides:
hashCode in class java.lang.Object
add
public void add(int index,
JsonValue value)
- Specified by:
add in interface java.util.List<JsonValue>
add
public boolean add(JsonValue value)
- Specified by:
add in interface java.util.Collection<JsonValue>- Specified by:
add in interface java.util.List<JsonValue>
addAll
public boolean addAll(java.util.Collection<? extends JsonValue> collection)
- 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> collection)
- 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 sought)
- 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<?> collection)
- 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 sought)
- 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 sought)
- 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 startIndex)
- Specified by:
listIterator in interface java.util.List<JsonValue>
remove
public JsonValue remove(int value)
- Specified by:
remove in interface java.util.List<JsonValue>
remove
public boolean remove(java.lang.Object value)
- Specified by:
remove in interface java.util.Collection<JsonValue>- Specified by:
remove in interface java.util.List<JsonValue>
removeAll
public boolean removeAll(java.util.Collection<?> collection)
- 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<?> collection)
- 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 value)
- 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 startIndex,
int endIndex)
- 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[] toFill)
- Specified by:
toArray in interface java.util.Collection<JsonValue>- Specified by:
toArray in interface java.util.List<JsonValue>