Package org.eclipse.emf.common.util
Class BasicEList.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.BasicEList<E>
org.eclipse.emf.common.util.BasicEList.UnmodifiableEList<E>
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<E>,Collection<E>,List<E>,RandomAccess,EList<E>
- Enclosing class:
- BasicEList<E>
An unmodifiable version of
BasicEList.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.emf.common.util.BasicEList
BasicEList.BasicIndexOutOfBoundsException, BasicEList.EIterator<E1>, BasicEList.EListIterator<E1>, BasicEList.FastCompare<E>, BasicEList.NonResolvingEIterator<E1>, BasicEList.NonResolvingEListIterator<E1>, BasicEList.UnmodifiableEList<E> -
Field Summary
Fields inherited from class org.eclipse.emf.common.util.BasicEList
data, sizeFields 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.voidgrow(int minimumCapacity) Throws an exception.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.voidshrink()Throws an exception.Methods inherited from class org.eclipse.emf.common.util.BasicEList
addAllUnique, addAllUnique, addAllUnique, addAllUnique, addUnique, addUnique, assign, basicGet, basicList, clone, contains, data, get, indexOf, isEmpty, lastIndexOf, newData, primitiveGet, setData, setUnique, size, toArray, toArrayMethods inherited from class org.eclipse.emf.common.util.AbstractEList
basicIterator, basicListIterator, basicListIterator, canContainNull, didAdd, didChange, didClear, didMove, didRemove, didSet, equalObjects, equals, getDuplicates, getNonDuplicates, hashCode, isUnique, resolve, toString, useEquals, validateMethods inherited from class java.util.AbstractList
removeRange, subListMethods inherited from class java.util.AbstractCollection
containsAllMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
containsAll, replaceAll, sort, spliterator, subList
-
Constructor Details
-
UnmodifiableEList
Creates an initialized instance.- Parameters:
size- the size of the list.data- the underlying storage of the list.
-
-
Method Details
-
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 classAbstractEList<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 classBasicEList<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 classAbstractEList<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 classAbstractEList<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 classBasicEList<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 classBasicEList<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.
-
shrink
public void shrink()Throws an exception.- Overrides:
shrinkin classBasicEList<E>- Throws:
UnsupportedOperationException- always because it's not supported.- See Also:
-
grow
public void grow(int minimumCapacity) Throws an exception.- Overrides:
growin classBasicEList<E>- Throws:
UnsupportedOperationException- always because it's not supported.- See Also:
-
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:
-