javautils.collections
Class IteratorDecorator

java.lang.Object
  |
  +--javautils.collections.AbstractIterator
        |
        +--javautils.collections.IteratorDecorator
All Implemented Interfaces:
java.util.Iterator

public class IteratorDecorator
extends AbstractIterator

A basic forwarding Decorator [Gamma1995] for iterators.


Field Summary
protected  java.util.Iterator original
           
 
Constructor Summary
IteratorDecorator(java.util.Iterator original)
           
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 
Methods inherited from class javautils.collections.AbstractIterator
remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

original

protected final java.util.Iterator original
Constructor Detail

IteratorDecorator

public IteratorDecorator(java.util.Iterator original)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator
Specified by:
hasNext in class AbstractIterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator
Specified by:
next in class AbstractIterator