org.dishevelled.graph.impl
Class AbstractIteratorDecorator<E>

java.lang.Object
  extended by org.dishevelled.graph.impl.AbstractIteratorDecorator<E>
Type Parameters:
E - iterator element type
All Implemented Interfaces:
Iterator<E>

abstract class AbstractIteratorDecorator<E>
extends Object
implements Iterator<E>

Abstract iterator that decorates an instance of Iterator.

Version:
$Revision$ $Date$
Author:
Michael Heuer

Constructor Summary
protected AbstractIteratorDecorator(Iterator<E> iterator)
          Create a new abstract iterator that decorates the specified iterator.
 
Method Summary
protected  Iterator<E> getIterator()
          \ * Return a reference to the iterator this decorator decorates.
 boolean hasNext()
          
 E next()
          
 void remove()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractIteratorDecorator

protected AbstractIteratorDecorator(Iterator<E> iterator)
Create a new abstract iterator that decorates the specified iterator.

Parameters:
iterator - iterator to decorate, must not be null
Method Detail

getIterator

protected final Iterator<E> getIterator()
\ * Return a reference to the iterator this decorator decorates.

Returns:
a reference to the iterator this decorator decorates

hasNext

public boolean hasNext()

Specified by:
hasNext in interface Iterator<E>

next

public E next()

Specified by:
next in interface Iterator<E>

remove

public void remove()

Specified by:
remove in interface Iterator<E>


Copyright (c) 2004-2012 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).