List of usage examples for java.util Spliterator estimateSize
long estimateSize();
From source file:com.wrmsr.kleist.util.Itertools.java
public static <T> Spliterator<EnumeratedElement<T>> enumerate(Spliterator<T> spliterator) { int characteristics = spliterator.characteristics() | Spliterator.NONNULL & ~Spliterator.CONCURRENT; return Spliterators.spliterator(enumerate(Spliterators.iterator(spliterator)), spliterator.estimateSize(), characteristics);/*from w w w. ja v a2s. c o m*/ }