cutthecrap.utils.striterators
Class Visitorator

java.lang.Object
  extended by cutthecrap.utils.striterators.Visitorator
All Implemented Interfaces:
Iterator

public class Visitorator
extends Object
implements Iterator

Author:
Martyn Cutcher

Field Summary
protected  Object m_context
           
 
Constructor Summary
Visitorator(Iterator iter, Object context, Visitor visitor)
           
 
Method Summary
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_context

protected final Object m_context
Constructor Detail

Visitorator

public Visitorator(Iterator iter,
                   Object context,
                   Visitor visitor)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

next

public Object next()
Specified by:
next in interface Iterator

remove

public void remove()
Specified by:
remove in interface Iterator


Copyright © 2006-2012 SYSTAP, LLC. All Rights Reserved.