org.databene.commons.iterator
Class IteratorProxy<E>

java.lang.Object
  extended by org.databene.commons.iterator.IteratorProxy<E>
All Implemented Interfaces:
java.util.Iterator<E>, BidirectionalIterator<E>
Direct Known Subclasses:
CyclicIterator, FilteringIterator, ReverseIterator

public abstract class IteratorProxy<E>
extends java.lang.Object
implements BidirectionalIterator<E>

Proxy for a BidirectionalIterator.

Created: 12.05.2007 23:18:31

Author:
Volker Bermgann

Constructor Summary
IteratorProxy(BidirectionalIterator<E> realIterator)
           
 
Method Summary
 E first()
           
 boolean hasNext()
           
 boolean hasPrevious()
           
 E last()
           
 E next()
           
 E previous()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IteratorProxy

public IteratorProxy(BidirectionalIterator<E> realIterator)
Method Detail

first

public E first()
Specified by:
first in interface BidirectionalIterator<E>

hasPrevious

public boolean hasPrevious()
Specified by:
hasPrevious in interface BidirectionalIterator<E>

previous

public E previous()
Specified by:
previous in interface BidirectionalIterator<E>

last

public E last()
Specified by:
last in interface BidirectionalIterator<E>

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<E>

next

public E next()
Specified by:
next in interface java.util.Iterator<E>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<E>


Copyright © 2010. All Rights Reserved.