org.eclipse.emf.common.util
Class BasicEList.NonResolvingEListIterator
java.lang.Object
|
+--org.eclipse.emf.common.util.BasicEList.EIterator
|
+--org.eclipse.emf.common.util.BasicEList.EListIterator
|
+--org.eclipse.emf.common.util.BasicEList.NonResolvingEListIterator
- All Implemented Interfaces:
- java.util.Iterator, java.util.ListIterator
- Enclosing class:
- BasicEList
- protected class BasicEList.NonResolvingEListIterator
- extends BasicEList.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 |
BasicEList.NonResolvingEListIterator
public BasicEList.NonResolvingEListIterator()
- Creates an instance.
BasicEList.NonResolvingEListIterator
public BasicEList.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 data storage directly.
- Overrides:
next
in class BasicEList.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 data storage directly.
- Overrides:
previous
in class BasicEList.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 BasicEList.EIterator
- Throws:
UnsupportedOperationException
- always because it's not supported.
set
public void set(java.lang.Object object)
- Throws an exception.
- Overrides:
set
in class BasicEList.EListIterator
- Throws:
UnsupportedOperationException
- always because it's not supported.
add
public void add(java.lang.Object object)
- Throws an exception.
- Overrides:
add
in class BasicEList.EListIterator
- Throws:
UnsupportedOperationException
- always because it's not supported.