Class EventIterator
- java.lang.Object
-
- nz.net.ultraq.thymeleaf.layoutdialect.models.extensions.EventIterator
-
- All Implemented Interfaces:
Iterator<ITemplateEvent>
public class EventIterator extends Object implements Iterator<ITemplateEvent>
An iterator that treats a model as a queue of events.
-
-
Constructor Summary
Constructors Constructor Description EventIterator(IModel model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
ITemplateEvent
next()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Constructor Detail
-
EventIterator
public EventIterator(IModel model)
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfaceIterator<ITemplateEvent>
-
next
public ITemplateEvent next()
- Specified by:
next
in interfaceIterator<ITemplateEvent>
-
-