All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vmlens.trace.agent.bootstrap.parallize.logicState.LoopIterator Maven / Gradle / Ivy

There is a newer version: 1.1.5
Show newest version
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