
com.vmlens.trace.agent.bootstrap.parallize.logicState.LoopIterator Maven / Gradle / Ivy
package com.vmlens.trace.agent.bootstrap.parallize.logicState;
public class LoopIterator {
private LoopElement current;
private final LoopElement start;
public LoopIterator(LoopElement start) {
super();
this.start = start;
current = start;
}
public boolean hasNext()
{
return current != null;
}
public LoopElement next()
{
LoopElement temp = current;
current = current.next;
if( current == start )
{
current = null;
}
return temp;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy