Relocate Source to proper directory.
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
package appeng.util.iterators;
|
||||
|
||||
import java.util.Iterator;
|
||||
|
||||
public class ChainedIterator<T> implements Iterator<T>
|
||||
{
|
||||
|
||||
int offset = 0;
|
||||
T[] list;
|
||||
|
||||
public ChainedIterator(T... list) {
|
||||
this.list = list;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasNext()
|
||||
{
|
||||
return offset < list.length;
|
||||
}
|
||||
|
||||
@Override
|
||||
public T next()
|
||||
{
|
||||
return list[offset++];
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove()
|
||||
{
|
||||
throw new RuntimeException( "Not implemented." );
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user