org.d2ab.collection.ints.IterableIntList Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sequence Show documentation
Show all versions of sequence Show documentation
A lightweight alternative to Java 8 sequential Stream
The newest version!
package org.d2ab.collection.ints;
import org.d2ab.iterator.ints.IntIterator;
import java.util.Iterator;
/**
* Superinterface for {@link IntList} implementation supporting only regular {@link Iterator} access.
*/
public interface IterableIntList extends IntList {
@Override
IntIterator iterator();
@Override
default IntListIterator listIterator(int index) {
return IntListIterator.forwardOnly(iterator(), index);
}
}