public abstract class AbstractJsonArray<V> extends JsonEntity implements JsonCollection, Iterable<V>
| Modifier and Type | Field and Description |
|---|---|
protected List<V> |
values |
sortOrderchangeSupport| Constructor and Description |
|---|
AbstractJsonArray() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(V value)
Adds a value to the receiver's collection
|
protected Object |
buildJson() |
void |
clear() |
protected void |
doParse(Object obj) |
boolean |
equals(Object obj) |
V |
get(int index)
Returns the passed object
|
boolean |
has(V value)
Checks whether the value is present.
|
int |
indexOf(V value) |
Iterator<V> |
iterator() |
void |
remove(V value)
Removes a value from the receiver's collection
|
void |
replace(V oldValue,
V newValue)
If oldValue exists, replaces with newValue
|
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
List<V> |
toList() |
appendSortOrder, fromJson, fromJson, fromJson, fromJson, getFieldByName, getFieldName, getFieldNames, getFields, getJsonValue, initialize, listen, toJsonaddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, removePropertyChangeListener, removePropertyChangeListenerprotected void doParse(Object obj)
doParse in class JsonEntityprotected Object buildJson()
buildJson in class JsonEntitypublic int size()
size in interface JsonCollectionpublic void clear()
clear in interface JsonCollectionpublic boolean has(V value)
value - the value to checkpublic V get(int index)
packageName - public int indexOf(V value)
public void add(V value)
value - the new valuepublic void remove(V value)
value - the value to removepublic void replace(V oldValue, V newValue)
oldValue - newValue - public Object[] toArray()
public <T> T[] toArray(T[] a)
Copyright © 2014. All rights reserved.