The Meta-Environment API

toolbus
Class ToolBus.ProcessInstanceIterator

java.lang.Object
  extended by toolbus.ToolBus.ProcessInstanceIterator
All Implemented Interfaces:
java.util.Iterator<ProcessInstance>
Enclosing class:
ToolBus

protected static class ToolBus.ProcessInstanceIterator
extends java.lang.Object
implements java.util.Iterator<ProcessInstance>

Custom iterator class. This is souly needed, so we aren't being bothered by the 'fail-fast eventhough it's completely pointless, since it's the currently iterating thread that modified something and not a concurrently running one, in which case I'm probably unable to detect it anyway' behaviour.

Author:
Arnold Lankamp

Field Summary
private  int index
           
private  java.util.List<ProcessInstance> list
           
 
Constructor Summary
ToolBus.ProcessInstanceIterator(java.util.List<ProcessInstance> list)
           
 
Method Summary
 boolean hasNext()
           
 ProcessInstance next()
           
 void remove()
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

list

private final java.util.List<ProcessInstance> list

index

private int index
Constructor Detail

ToolBus.ProcessInstanceIterator

public ToolBus.ProcessInstanceIterator(java.util.List<ProcessInstance> list)
Method Detail

hasNext

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

next

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

remove

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

reset

public void reset()

The Meta-Environment API