se.ugli.java.util.ImmutableList Maven / Gradle / Ivy
The newest version!
package se.ugli.java.util;
import java.util.Spliterator;
import java.util.Spliterators;
public interface ImmutableList extends ImmutableCollection {
E get(int index);
int indexOf(Object o);
int lastIndexOf(Object o);
ImmutableList subList(int fromIndex, int toIndex);
@Override
default Spliterator spliterator() {
return Spliterators.spliterator(this.toArray(), Spliterator.ORDERED);
}
}