org.eclipse.net4j.util.collection
Class BidirectionalIterator<T>

java.lang.Object
  extended by org.eclipse.net4j.util.collection.BidirectionalIterator<T>
All Implemented Interfaces:
Iterator<T>

public class BidirectionalIterator<T>
extends Object
implements Iterator<T>

Since:
3.3

Constructor Summary
BidirectionalIterator(ListIterator<T> delegate)
           
BidirectionalIterator(ListIterator<T> delegate, boolean backward)
           
 
Method Summary
 ListIterator<T> getDelegate()
           
 boolean hasNext()
           
 boolean isBackward()
           
 T next()
           
 void remove()
           
 void setBackward(boolean backward)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BidirectionalIterator

public BidirectionalIterator(ListIterator<T> delegate,
                             boolean backward)

BidirectionalIterator

public BidirectionalIterator(ListIterator<T> delegate)
Method Detail

getDelegate

public ListIterator<T> getDelegate()

isBackward

public boolean isBackward()

setBackward

public void setBackward(boolean backward)

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<T>

next

public T next()
Specified by:
next in interface Iterator<T>

remove

public void remove()
Specified by:
remove in interface Iterator<T>


Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.