public static class DelegatingEList.UnmodifiableEList<E> extends DelegatingEList<E>
DelegatingEList.DelegatingEList.EIterator<E1>, DelegatingEList.EListIterator<E1>, DelegatingEList.NonResolvingEIterator<E1>, DelegatingEList.NonResolvingEListIterator<E1>, DelegatingEList.UnmodifiableEList<E>AbstractEList.BasicIndexOutOfBoundsException| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<E> |
underlyingList |
| Constructor and Description |
|---|
DelegatingEList.UnmodifiableEList(java.util.List<E> underlyingList)
Creates an initialized instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E object)
Throws an exception.
|
void |
add(int index,
E object)
Throws an exception.
|
boolean |
addAll(java.util.Collection<? extends E> collection)
Throws an exception.
|
boolean |
addAll(int index,
java.util.Collection<? extends E> collection)
Throws an exception.
|
void |
clear()
Throws an exception.
|
protected java.util.List<E> |
delegateList()
Returns the list that acts as the backing store.
|
java.util.Iterator<E> |
iterator()
Returns the
basic iterator. |
java.util.ListIterator<E> |
listIterator()
Returns the
basic list iterator. |
java.util.ListIterator<E> |
listIterator(int index)
Returns the
basic list iterator advanced to the index. |
void |
move(int index,
E object)
Throws an exception.
|
E |
move(int targetIndex,
int sourceIndex)
Throws an exception.
|
E |
remove(int index)
Throws an exception.
|
boolean |
remove(java.lang.Object object)
Throws an exception.
|
boolean |
removeAll(java.util.Collection<?> collection)
Throws an exception.
|
boolean |
retainAll(java.util.Collection<?> collection)
Throws an exception.
|
E |
set(int index,
E object)
Throws an exception.
|
addAllUnique, addAllUnique, addAllUnique, addAllUnique, addUnique, addUnique, basicGet, basicList, contains, containsAll, delegateAdd, delegateAdd, delegateBasicList, delegateClear, delegateContains, delegateContainsAll, delegateEquals, delegateGet, delegateHashCode, delegateIndexOf, delegateIsEmpty, delegateIterator, delegateLastIndexOf, delegateListIterator, delegateMove, delegateRemove, delegateSet, delegateSize, delegateToArray, delegateToArray, delegateToString, doClear, equals, get, hashCode, indexOf, isEmpty, lastIndexOf, primitiveGet, setUnique, size, toArray, toArray, toStringbasicIterator, basicListIterator, basicListIterator, canContainNull, didAdd, didChange, didClear, didMove, didRemove, didSet, equalObjects, getDuplicates, getNonDuplicates, isUnique, resolve, useEquals, validateprotected java.util.List<E> underlyingList
public DelegatingEList.UnmodifiableEList(java.util.List<E> underlyingList)
underlyingList - the backing store list.protected java.util.List<E> delegateList()
DelegatingEListdelegateList in class DelegatingEList<E>public E set(int index, E object)
set in interface java.util.List<E>set in class AbstractEList<E>index - the position in question.object - the object to set.java.lang.UnsupportedOperationException - always because it's not supported.AbstractEList.setUnique(int, E)public boolean add(E object)
add in interface java.util.Collection<E>add in interface java.util.List<E>add in class AbstractEList<E>object - the object to be added.java.lang.UnsupportedOperationException - always because it's not supported.AbstractEList.addUnique(Object)public void add(int index,
E object)
add in interface java.util.List<E>add in class AbstractEList<E>object - the object to be added.java.lang.UnsupportedOperationException - always because it's not supported.AbstractEList.addUnique(int, Object)public boolean addAll(java.util.Collection<? extends E> collection)
addAll in interface java.util.Collection<E>addAll in interface java.util.List<E>addAll in class AbstractEList<E>collection - the collection of objects to be added.java.lang.UnsupportedOperationException - always because it's not supported.AbstractEList.addAllUnique(Collection)public boolean addAll(int index,
java.util.Collection<? extends E> collection)
addAll in interface java.util.List<E>addAll in class AbstractEList<E>index - the index at which to add.collection - the collection of objects to be added.java.lang.UnsupportedOperationException - always because it's not supported.AbstractEList.addAllUnique(int, Collection)public boolean remove(java.lang.Object object)
remove in interface java.util.Collection<E>remove in interface java.util.List<E>remove in class DelegatingEList<E>object - the object to be removed.java.lang.UnsupportedOperationException - always because it's not supported.public E remove(int index)
remove in interface java.util.List<E>remove in class DelegatingEList<E>index - the position of the object to remove.java.lang.UnsupportedOperationException - always because it's not supported.public boolean removeAll(java.util.Collection<?> collection)
removeAll in interface java.util.Collection<E>removeAll in interface java.util.List<E>removeAll in class DelegatingEList<E>collection - the collection of objects to be removed.java.lang.UnsupportedOperationException - always because it's not supported.public boolean retainAll(java.util.Collection<?> collection)
retainAll in interface java.util.Collection<E>retainAll in interface java.util.List<E>retainAll in class DelegatingEList<E>collection - the collection of objects to be retained.java.lang.UnsupportedOperationException - always because it's not supported.public void clear()
clear in interface java.util.Collection<E>clear in interface java.util.List<E>clear in class DelegatingEList<E>java.lang.UnsupportedOperationException - always because it's not supported.public void move(int index,
E object)
public E move(int targetIndex, int sourceIndex)
move in interface EList<E>move in class DelegatingEList<E>targetIndex - the new position for the object in the list.sourceIndex - the old position of the object in the list.java.lang.UnsupportedOperationException - always because it's not supported.public java.util.Iterator<E> iterator()
basic iterator.iterator in interface java.lang.Iterable<E>iterator in interface java.util.Collection<E>iterator in interface java.util.List<E>iterator in class AbstractEList<E>AbstractEList.EIteratorpublic java.util.ListIterator<E> listIterator()
basic list iterator.listIterator in interface java.util.List<E>listIterator in class AbstractEList<E>AbstractEList.EListIteratorpublic java.util.ListIterator<E> listIterator(int index)
basic list iterator advanced to the index.listIterator in interface java.util.List<E>listIterator in class AbstractEList<E>index - the starting index.AbstractEList.EListIterator