protected class SimpleElement.ElementList extends ArrayList implements ExternalizableLite
modCount| Modifier | Constructor and Description |
|---|---|
protected |
ElementList() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index, Object element)
Inserts the specified element at the specified position in this list.
|
boolean |
add(Object o)
Appends the specified element to the end of this list.
|
boolean |
addAll(Collection c)
Overrides the ArrayList implementation to force this throw the single object add() method.
|
boolean |
addAll(int index, Collection c)
Overrides the ArrayList implementation to force this throw the single object add() method.
|
protected XmlElement |
checkElement(XmlElement element)
Validates the passed XmlElement, copying the element into a new valid element if necessary.
|
void |
clear()
Removes all of the elements from this list.
|
void |
readExternal(DataInput in)
Restore the contents of this object by loading the object's state from the passed DataInput object.
|
Object |
remove(int index)
Removes the element at the specified position in this list.
|
Object |
set(int index, Object element)
Replaces the element at the specified position in this list with the specified element.
|
void |
writeExternal(DataOutput out)
Save the contents of this object by storing the object's state into the passed DataOutput object.
|
clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streampublic Object set(int index, Object element)
set in interface Listset in class ArrayListindex - index of element to replace.element - element to be stored at the specified position.IndexOutOfBoundsException - if index out of range (index < 0 || index >= size()).public boolean add(Object o)
public void add(int index,
Object element)
add in interface Listadd in class ArrayListindex - index at which the specified element is to be inserted.element - element to be inserted.IndexOutOfBoundsException - if index is out of range (index < 0 || index > size()).public Object remove(int index)
remove in interface Listremove in class ArrayListindex - the index of the element to removed.IndexOutOfBoundsException - if index out of range (index < 0 || index >= size()).public void clear()
public boolean addAll(Collection c)
public boolean addAll(int index,
Collection c)
protected XmlElement checkElement(XmlElement element)
public void readExternal(DataInput in) throws IOException
ExternalizableLitereadExternal in interface ExternalizableLitein - the DataInput stream to read data from in order to restore the state of this objectIOException - if an I/O exception occursNotActiveException - if the object is not in its initial state, and therefore cannot be deserialized intopublic void writeExternal(DataOutput out) throws IOException
ExternalizableLitewriteExternal in interface ExternalizableLiteout - the DataOutput stream to write the state of this object toIOException - if an I/O exception occurs