org.eclipse.emf.common.util
Class DelegatingEList.NonResolvingEListIterator

java.lang.Object
  extended byorg.eclipse.emf.common.util.DelegatingEList.EIterator
      extended byorg.eclipse.emf.common.util.DelegatingEList.EListIterator
          extended byorg.eclipse.emf.common.util.DelegatingEList.NonResolvingEListIterator
All Implemented Interfaces:
Iterator, ListIterator
Enclosing class:
DelegatingEList

protected class DelegatingEList.NonResolvingEListIterator
extends DelegatingEList.EListIterator

An extended read-only list iterator that does not resolve objects.


Field Summary
 
Fields inherited from class org.eclipse.emf.common.util.DelegatingEList.EIterator
cursor, expectedModCount, lastCursor
 
Constructor Summary
DelegatingEList.NonResolvingEListIterator()
          Creates an instance.
DelegatingEList.NonResolvingEListIterator(int index)
          Creates an instance advanced to the index.
 
Method Summary
 void add(Object object)
          Throws an exception.
 Object next()
          Returns the next object and advances the iterator.
 Object previous()
          Returns the previous object and advances the iterator.
 void remove()
          Throws an exception.
 void set(Object object)
          Throws an exception.
 
Methods inherited from class org.eclipse.emf.common.util.DelegatingEList.EListIterator
hasPrevious, nextIndex, previousIndex
 
Methods inherited from class org.eclipse.emf.common.util.DelegatingEList.EIterator
checkModCount, hasNext
 
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
 

Constructor Detail

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.
Method Detail

next

public Object next()
Returns the next object and advances the iterator. This implementation accesses the backing list directly.

Specified by:
next in interface ListIterator
Overrides:
next in class DelegatingEList.EIterator
Returns:
the next object.
Throws:
NoSuchElementException - if the iterator is done.

previous

public Object previous()
Returns the previous object and advances the iterator. This implementation acesses the backing list directly.

Specified by:
previous in interface ListIterator
Overrides:
previous in class DelegatingEList.EListIterator
Returns:
the previous object.
Throws:
NoSuchElementException - if the iterator is done.

remove

public void remove()
Throws an exception.

Specified by:
remove in interface ListIterator
Overrides:
remove in class DelegatingEList.EIterator
Throws:
UnsupportedOperationException - always because it's not supported.

set

public void set(Object object)
Throws an exception.

Specified by:
set in interface ListIterator
Overrides:
set in class DelegatingEList.EListIterator
Parameters:
object - the object to set.
Throws:
UnsupportedOperationException - always because it's not supported.

add

public void add(Object object)
Throws an exception.

Specified by:
add in interface ListIterator
Overrides:
add in class DelegatingEList.EListIterator
Parameters:
object - the object to add.
Throws:
UnsupportedOperationException - always because it's not supported.

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.