org.eclipse.emf.common.util
Class DelegatingEList.NonResolvingEListIterator
java.lang.Object
|
+--org.eclipse.emf.common.util.DelegatingEList.EIterator
|
+--org.eclipse.emf.common.util.DelegatingEList.EListIterator
|
+--org.eclipse.emf.common.util.DelegatingEList.NonResolvingEListIterator
- All Implemented Interfaces:
- java.util.Iterator, java.util.ListIterator
- Enclosing class:
- DelegatingEList
- protected class DelegatingEList.NonResolvingEListIterator
- extends DelegatingEList.EListIterator
An extended read-only list iterator that does not resolve
objects.
Method Summary |
void |
add(java.lang.Object object)
Throws an exception. |
java.lang.Object |
next()
Returns the next object and advances the iterator. |
java.lang.Object |
previous()
Returns the previous object and advances the iterator. |
void |
remove()
Throws an exception. |
void |
set(java.lang.Object object)
Throws an exception. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.ListIterator |
hasNext |
DelegatingEList.NonResolvingEListIterator
public DelegatingEList.NonResolvingEListIterator()
- Creates an instance.
DelegatingEList.NonResolvingEListIterator
public DelegatingEList.NonResolvingEListIterator(int index)
- Creates an instance advanced to the index.
- Parameters:
index
- the starting index.
next
public java.lang.Object next()
- Returns the next object and advances the iterator.
This implementation accesses the backing list directly.
- Overrides:
next
in class DelegatingEList.EIterator
- Returns:
- the next object.
- Throws:
java.util.NoSuchElementException
- if the iterator is done.
previous
public java.lang.Object previous()
- Returns the previous object and advances the iterator.
This implementation acesses the backing list directly.
- Overrides:
previous
in class DelegatingEList.EListIterator
- Returns:
- the previous object.
- Throws:
java.util.NoSuchElementException
- if the iterator is done.
remove
public void remove()
- Throws an exception.
- Overrides:
remove
in class DelegatingEList.EIterator
- Throws:
UnsupportedOperationException
- always because it's not supported.
set
public void set(java.lang.Object object)
- Throws an exception.
- Overrides:
set
in class DelegatingEList.EListIterator
- Throws:
UnsupportedOperationException
- always because it's not supported.
add
public void add(java.lang.Object object)
- Throws an exception.
- Overrides:
add
in class DelegatingEList.EListIterator
- Throws:
UnsupportedOperationException
- always because it's not supported.