public static class ExtraStreams.IntRange extends Object implements Spliterator.OfInt
Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T,T_CONS,T_SPLITR extends Spliterator.OfPrimitive<T,T_CONS,T_SPLITR>>
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED
Constructor and Description |
---|
IntRange(int start,
int limit,
int increment)
Create a range from start with limit and increment step.
|
Modifier and Type | Method and Description |
---|---|
int |
characteristics() |
long |
estimateSize() |
Comparator<? super Integer> |
getComparator() |
long |
getExactSizeIfKnown() |
boolean |
tryAdvance(IntConsumer consumer) |
Spliterator.OfInt |
trySplit() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, forEachRemaining, tryAdvance
hasCharacteristics
public IntRange(int start, int limit, int increment)
start
- The starting value.limit
- The upper limit (non-inclusive)increment
- The increment step.public Spliterator.OfInt trySplit()
trySplit
in interface Spliterator<Integer>
trySplit
in interface Spliterator.OfInt
trySplit
in interface Spliterator.OfPrimitive<Integer,IntConsumer,Spliterator.OfInt>
public long estimateSize()
estimateSize
in interface Spliterator<Integer>
public long getExactSizeIfKnown()
getExactSizeIfKnown
in interface Spliterator<Integer>
public int characteristics()
characteristics
in interface Spliterator<Integer>
public Comparator<? super Integer> getComparator()
getComparator
in interface Spliterator<Integer>
public boolean tryAdvance(IntConsumer consumer)
tryAdvance
in interface Spliterator.OfInt
tryAdvance
in interface Spliterator.OfPrimitive<Integer,IntConsumer,Spliterator.OfInt>
Copyright © 2017. All rights reserved.