|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection<E> java.util.AbstractList<E> org.eclipse.emf.common.util.DelegatingEList<E> org.eclipse.emf.common.util.DelegatingEList.UnmodifiableEList<E>
public static class DelegatingEList.UnmodifiableEList<E>
An unmodifiable version of DelegatingEList
.
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> |
Field Summary | |
---|---|
protected java.util.List<E> |
underlyingList
|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
DelegatingEList.UnmodifiableEList(java.util.List<E> underlyingList)
Creates an initialized instance. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.eclipse.emf.common.util.DelegatingEList |
---|
addAllUnique, addAllUnique, addAllUnique, addAllUnique, addUnique, addUnique, basicGet, basicIterator, basicList, basicListIterator, basicListIterator, canContainNull, contains, containsAll, delegateAdd, delegateAdd, delegateBasicList, delegateClear, delegateContains, delegateContainsAll, delegateEquals, delegateGet, delegateHashCode, delegateIndexOf, delegateIsEmpty, delegateIterator, delegateLastIndexOf, delegateListIterator, delegateMove, delegateRemove, delegateSet, delegateSize, delegateToArray, delegateToArray, delegateToString, didAdd, didChange, didClear, didMove, didRemove, didSet, doClear, equalObjects, equals, get, getDuplicates, getNonDuplicates, hashCode, indexOf, isEmpty, isUnique, lastIndexOf, resolve, setUnique, size, toArray, toArray, toString, useEquals, validate |
Methods inherited from class java.util.AbstractList |
---|
removeRange, subList |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
subList |
Field Detail |
---|
protected java.util.List<E> underlyingList
Constructor Detail |
---|
public DelegatingEList.UnmodifiableEList(java.util.List<E> underlyingList)
underlyingList
- the backing store list.Method Detail |
---|
protected java.util.List<E> delegateList()
DelegatingEList
delegateList
in class DelegatingEList<E>
public E set(int index, E object)
set
in interface java.util.List<E>
set
in class DelegatingEList<E>
index
- the position in question.object
- the object to set.
java.lang.UnsupportedOperationException
- always because it's not supported.DelegatingEList.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 DelegatingEList<E>
object
- the object to be added.
java.lang.UnsupportedOperationException
- always because it's not supported.DelegatingEList.addUnique(Object)
public void add(int index, E object)
add
in interface java.util.List<E>
add
in class DelegatingEList<E>
object
- the object to be added.
java.lang.UnsupportedOperationException
- always because it's not supported.DelegatingEList.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 DelegatingEList<E>
collection
- the collection of objects to be added.
java.lang.UnsupportedOperationException
- always because it's not supported.DelegatingEList.addAllUnique(Collection)
public boolean addAll(int index, java.util.Collection<? extends E> collection)
addAll
in interface java.util.List<E>
addAll
in class DelegatingEList<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.DelegatingEList.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)
move
in interface EList<E>
move
in class DelegatingEList<E>
index
- the new position for the object in the list.object
- the object to be moved.
java.lang.UnsupportedOperationException
- always because it's not supported.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 DelegatingEList<E>
DelegatingEList.EIterator
public java.util.ListIterator<E> listIterator()
basic list iterator
.
listIterator
in interface java.util.List<E>
listIterator
in class DelegatingEList<E>
DelegatingEList.EListIterator
public java.util.ListIterator<E> listIterator(int index)
basic list iterator
advanced to the index.
listIterator
in interface java.util.List<E>
listIterator
in class DelegatingEList<E>
index
- the starting index.
DelegatingEList.EListIterator
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |