Class IntegerList.PrimitiveSpliterator

java.lang.Object
org.apache.sis.util.collection.IntegerList.PrimitiveSpliterator
All Implemented Interfaces:
Iterator<Integer>, PrimitiveIterator<Integer,IntConsumer>, PrimitiveIterator.OfInt, Spliterator<Integer>, Spliterator.OfInt, Spliterator.OfPrimitive<Integer,IntConsumer,Spliterator.OfInt>
Enclosing class:
IntegerList

private final class IntegerList.PrimitiveSpliterator extends Object implements Spliterator.OfInt, PrimitiveIterator.OfInt
Same as IntegerList.spliterator(), but without value boxing. This spliterator provides a fail-fast way to traverse list content, which means that any alteration to the list content causes a failure of the advance operation with a ConcurrentModificationException.

This implementation opportunistically provides an iterator implementation on integer values too, but only one of the Iterator or Spliterator API should be used on a given instance.