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

org.etlunit.PassThroughClassLocatorImpl Maven / Gradle / Ivy

package org.etlunit;

import org.etlunit.parser.ETLTestClass;

import java.util.Collections;
import java.util.Iterator;
import java.util.List;

public class PassThroughClassLocatorImpl implements ClassLocator
{
	private final List classes;
	private Iterator it;

	public PassThroughClassLocatorImpl(List classes)
	{
		this.classes = classes;

		// sort to guarantee ordering
		Collections.sort(classes);

		reset();
	}

	@Override
	public boolean hasNext()
	{
		return it.hasNext();
	}

	@Override
	public ETLTestClass next()
	{
		return it.next();
	}

	@Override
	public void remove()
	{
		throw new UnsupportedOperationException();
	}

	@Override
	public void reset()
	{
		it = classes.iterator();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy