org.d2ab.collection.doubles.IterableDoubleList 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.doubles;
import org.d2ab.iterator.doubles.DoubleIterator;
import java.util.Iterator;
/**
* Superinterface for {@link DoubleList} implementation supporting only regular {@link Iterator} access.
*/
public interface IterableDoubleList extends DoubleList {
@Override
DoubleIterator iterator();
@Override
default DoubleListIterator listIterator(int index) {
return DoubleListIterator.forwardOnly(iterator(), index);
}
}