public class ListImpl extends Object implements Value.List
Value.List, Value.Map| Constructor and Description |
|---|
ListImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
Value element) |
boolean |
add(Value jsonValue) |
boolean |
addAll(Collection<? extends Value> c) |
boolean |
addAll(int index,
Collection<? extends Value> c) |
ListImpl |
asList() |
MapImpl |
asMap() |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object o) |
Value |
get(int index) |
Object |
getObject()
Read the field value as the original object.
|
Object |
getObject(int fieldIndex)
Read the raw field value at the specified index.
|
String |
getString()
Read the field.
|
int |
hashCode() |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<Value> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<Value> |
listIterator() |
ListIterator<Value> |
listIterator(int index) |
Value |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
Value |
set(int index,
Value element) |
int |
size() |
List<Value> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitnewList, of, of, of, ofJson, ofJson, ofJson, ofJsongetAs, getBoolean, getBooleanAs, getByte, getByteAs, getDouble, getDoubleAs, getFloat, getFloatAs, getInt, getIntAs, getLong, getLongAs, getShort, getShortAs, getStringAsreplaceAll, sort, spliteratorparallelStream, removeIf, streamgetAs, getBoolean, getBooleanAs, getByte, getByteAs, getDouble, getDoubleAs, getFloat, getFloatAs, getInt, getIntAs, getLong, getLongAs, getShort, getShortAs, getString, getStringAspublic Object getObject()
FieldAccessorsgetObject in interface FieldAccessorspublic Object getObject(int fieldIndex)
IndexedFieldsAccessorsgetObject in interface IndexedFieldsAccessorsfieldIndex - 0-based field index.public String getString()
FieldAccessorsgetString in interface FieldAccessorspublic int size()
public boolean isEmpty()
public boolean contains(Object o)
public Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean add(Value jsonValue)
public boolean remove(Object o)
public boolean containsAll(Collection<?> c)
containsAll in interface Collection<Value>containsAll in interface List<Value>public boolean addAll(Collection<? extends Value> c)
public boolean addAll(int index,
Collection<? extends Value> c)
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public void clear()
public boolean equals(Object o)
public int hashCode()
public int lastIndexOf(Object o)
lastIndexOf in interface List<Value>public ListIterator<Value> listIterator()
listIterator in interface List<Value>public ListIterator<Value> listIterator(int index)
listIterator in interface List<Value>Copyright © 2014. All rights reserved.