Package org.eclipse.emf.common.util
Class DelegatingEList.UnmodifiableEList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
org.eclipse.emf.common.util.AbstractEList<E>
org.eclipse.emf.common.util.DelegatingEList<E>
org.eclipse.emf.common.util.DelegatingEList.UnmodifiableEList<E>
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<E>,Collection<E>,List<E>,EList<E>
- Enclosing class:
- DelegatingEList<E>
An unmodifiable version of
DelegatingEList.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.emf.common.util.DelegatingEList
DelegatingEList.EIterator<E1>, DelegatingEList.EListIterator<E1>, DelegatingEList.NonResolvingEIterator<E1>, DelegatingEList.NonResolvingEListIterator<E1>, DelegatingEList.UnmodifiableEList<E>Nested classes/interfaces inherited from class org.eclipse.emf.common.util.AbstractEList
AbstractEList.BasicIndexOutOfBoundsException -
Field Summary
FieldsFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThrows an exception.booleanThrows an exception.booleanaddAll(int index, Collection<? extends E> collection) Throws an exception.booleanaddAll(Collection<? extends E> collection) Throws an exception.voidclear()Throws an exception.Returns the list that acts as the backing store.iterator()Returns thebasic iterator.Returns thebasic list iterator.listIterator(int index) Returns thebasic list iteratoradvanced to the index.move(int targetIndex, int sourceIndex) Throws an exception.voidThrows an exception.remove(int index) Throws an exception.booleanThrows an exception.booleanremoveAll(Collection<?> collection) Throws an exception.booleanretainAll(Collection<?> collection) Throws an exception.Throws an exception.Methods inherited from class org.eclipse.emf.common.util.DelegatingEList
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, toStringMethods inherited from class org.eclipse.emf.common.util.AbstractEList
basicIterator, basicListIterator, basicListIterator, canContainNull, didAdd, didChange, didClear, didMove, didRemove, didSet, equalObjects, getDuplicates, getNonDuplicates, isUnique, resolve, useEquals, validateMethods inherited from class java.util.AbstractList
removeRange, subListMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
replaceAll, sort, spliterator, subList
-
Field Details
-
underlyingList
-
-
Constructor Details
-
UnmodifiableEList
Creates an initialized instance.- Parameters:
underlyingList- the backing store list.
-
-
Method Details
-
delegateList
Description copied from class:DelegatingEListReturns the list that acts as the backing store.- Specified by:
delegateListin classDelegatingEList<E>- Returns:
- the list that acts as the backing store.
-
set
Throws an exception.- Specified by:
setin interfaceList<E>- Overrides:
setin classAbstractEList<E>- Parameters:
index- the position in question.object- the object to set.- Returns:
- the old object at the index.
- Throws:
UnsupportedOperationException- always because it's not supported.- See Also:
-
add
Throws an exception.- Specified by:
addin interfaceCollection<E>- Specified by:
addin interfaceList<E>- Overrides:
addin classAbstractEList<E>- Parameters:
object- the object to be added.- Returns:
- whether the object was added.
- Throws:
UnsupportedOperationException- always because it's not supported.- See Also:
-
add
Throws an exception.- Specified by:
addin interfaceList<E>- Overrides:
addin classAbstractEList<E>object- the object to be added.- Throws:
UnsupportedOperationException- always because it's not supported.- See Also:
-
addAll
Throws an exception.- Specified by:
addAllin interfaceCollection<E>- Specified by:
addAllin interfaceList<E>- Overrides:
addAllin classAbstractEList<E>- Parameters:
collection- the collection of objects to be added.- Throws:
UnsupportedOperationException- always because it's not supported.- See Also:
-
addAll
Throws an exception.- Specified by:
addAllin interfaceList<E>- Overrides:
addAllin classAbstractEList<E>- Parameters:
index- the index at which to add.collection- the collection of objects to be added.- Returns:
- whether any objects were added.
- Throws:
UnsupportedOperationException- always because it's not supported.- See Also:
-
remove
Throws an exception.- Specified by:
removein interfaceCollection<E>- Specified by:
removein interfaceList<E>- Overrides:
removein classDelegatingEList<E>- Parameters:
object- the object to be removed.- Returns:
- whether the object was actually contained by the list.
- Throws:
UnsupportedOperationException- always because it's not supported.
-
remove
Throws an exception.- Specified by:
removein interfaceList<E>- Overrides:
removein classDelegatingEList<E>- Parameters:
index- the position of the object to remove.- Returns:
- the removed object.
- Throws:
UnsupportedOperationException- always because it's not supported.
-
removeAll
Throws an exception.- Specified by:
removeAllin interfaceCollection<E>- Specified by:
removeAllin interfaceList<E>- Overrides:
removeAllin classDelegatingEList<E>- Parameters:
collection- the collection of objects to be removed.- Returns:
- whether any object was actually contained by the list.
- Throws:
UnsupportedOperationException- always because it's not supported.
-
retainAll
Throws an exception.- Specified by:
retainAllin interfaceCollection<E>- Specified by:
retainAllin interfaceList<E>- Overrides:
retainAllin classDelegatingEList<E>- Parameters:
collection- the collection of objects to be retained.- Returns:
- whether any object was actually removed.
- Throws:
UnsupportedOperationException- always because it's not supported.
-
clear
public void clear()Throws an exception.- Specified by:
clearin interfaceCollection<E>- Specified by:
clearin interfaceList<E>- Overrides:
clearin classDelegatingEList<E>- Throws:
UnsupportedOperationException- always because it's not supported.
-
move
Throws an exception.- Specified by:
movein interfaceEList<E>- Overrides:
movein classAbstractEList<E>- Parameters:
index- the new position for the object in the list.object- the object to be moved.- Throws:
UnsupportedOperationException- always because it's not supported.
-
move
Throws an exception.- Specified by:
movein interfaceEList<E>- Overrides:
movein classDelegatingEList<E>- Parameters:
targetIndex- the new position for the object in the list.sourceIndex- the old position of the object in the list.- Returns:
- the moved object.
- Throws:
UnsupportedOperationException- always because it's not supported.
-
iterator
Returns thebasic iterator. -
listIterator
Returns thebasic list iterator.- Specified by:
listIteratorin interfaceList<E>- Overrides:
listIteratorin classAbstractEList<E>- Returns:
- the basic list iterator.
- See Also:
-
listIterator
Returns thebasic list iteratoradvanced to the index.- Specified by:
listIteratorin interfaceList<E>- Overrides:
listIteratorin classAbstractEList<E>- Parameters:
index- the starting index.- Returns:
- the basic list iterator.
- See Also:
-