|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
com.tangosol.run.xml.SimpleElement.ElementList
protected class SimpleElement.ElementList
An implementation of List that only supports XmlElements as the content of the List.
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
protected |
SimpleElement.ElementList() |
| Method Summary | |
|---|---|
void |
add(int index, java.lang.Object element)Inserts the specified element at the specified position in this list. |
boolean |
add(java.lang.Object o)Appends the specified element to the end of this list. |
boolean |
addAll(java.util.Collection c)Overrides the ArrayList implementation to force this throw the single object add() method. |
boolean |
addAll(int index, java.util.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(java.io.DataInput in)Restore the contents of this object by loading the object's state from the passed DataInput object. |
java.lang.Object |
remove(int index)Removes the element at the specified position in this list. |
java.lang.Object |
set(int index, java.lang.Object element)Replaces the element at the specified position in this list with the specified element. |
void |
writeExternal(java.io.DataOutput out)Save the contents of this object by storing the object's state into the passed DataOutput object. |
| Methods inherited from class java.util.ArrayList |
|---|
clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, removeAll, retainAll, toString |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
| Constructor Detail |
|---|
protected SimpleElement.ElementList()
| Method Detail |
|---|
public java.lang.Object set(int index,
java.lang.Object element)
set in interface java.util.Listset in class java.util.ArrayListindex - index of element to replace.element - element to be stored at the specified position.java.lang.IndexOutOfBoundsException - if index out of range (index < 0 || index >= size()).public boolean add(java.lang.Object o)
add in interface java.util.Collectionadd in interface java.util.Listadd in class java.util.ArrayListo - element to be appended to this list.
public void add(int index,
java.lang.Object element)
add in interface java.util.Listadd in class java.util.ArrayListindex - index at which the specified element is to be inserted.element - element to be inserted.java.lang.IndexOutOfBoundsException - if index is out of range (index < 0 || index > size()).public java.lang.Object remove(int index)
remove in interface java.util.Listremove in class java.util.ArrayListindex - the index of the element to removed.java.lang.IndexOutOfBoundsException - if index out of range (index < 0 || index >= size()).public void clear()
clear in interface java.util.Collectionclear in interface java.util.Listclear in class java.util.ArrayListpublic boolean addAll(java.util.Collection c)
addAll in interface java.util.CollectionaddAll in interface java.util.ListaddAll in class java.util.ArrayListc - the elements to be inserted into this list.AbstractCollection.add(Object)
public boolean addAll(int index,
java.util.Collection c)
addAll in interface java.util.ListaddAll in class java.util.ArrayListindex - index at which to insert first element from the specified collection.c - elements to be inserted into this list.protected XmlElement checkElement(XmlElement element)
public void readExternal(java.io.DataInput in)
throws java.io.IOException
ExternalizableLitereadExternal in interface ExternalizableLitein - the DataInput stream to read data from in order to restore the state of this objectjava.io.IOException - if an I/O exception occursjava.io.NotActiveException - if the object is not in its initial state, and therefore cannot be deserialized into
public void writeExternal(java.io.DataOutput out)
throws java.io.IOException
ExternalizableLitewriteExternal in interface ExternalizableLiteout - the DataOutput stream to write the state of this object tojava.io.IOException - if an I/O exception occurs
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||