public interface ShortSpliterator extends java.util.Spliterator.OfPrimitive<java.lang.Short,ShortConsumer,ShortSpliterator>
Spliterator
; provides an additional methods to avoid (un)boxing, and
the possibility to skip elements.Spliterator
Modifier and Type | Method and Description |
---|---|
default void |
forEachRemaining(java.util.function.Consumer<? super java.lang.Short> action)
Deprecated.
Please use the corresponding type-specific method instead.
|
default ShortComparator |
getComparator() |
default long |
skip(long n)
Skips the given number of elements.
|
default boolean |
tryAdvance(java.util.function.Consumer<? super java.lang.Short> action)
Deprecated.
Please use the corresponding type-specific method instead.
|
ShortSpliterator |
trySplit() |
@Deprecated default boolean tryAdvance(java.util.function.Consumer<? super java.lang.Short> action)
tryAdvance
in interface java.util.Spliterator<java.lang.Short>
@Deprecated default void forEachRemaining(java.util.function.Consumer<? super java.lang.Short> action)
forEachRemaining
in interface java.util.Spliterator<java.lang.Short>
default long skip(long n)
The effect of this call is exactly the same as that of calling tryAdvance(java.util.function.Consumer<? super java.lang.Short>)
for
n
times (possibly stopping if tryAdvance(java.util.function.Consumer<? super java.lang.Short>)
returns false).
The action called will do nothing; elements will be discarded.
n
- the number of elements to skip.Spliterator.tryAdvance(java.util.function.Consumer<? super T>)
ShortSpliterator trySplit()
trySplit
in interface java.util.Spliterator<java.lang.Short>
trySplit
in interface java.util.Spliterator.OfPrimitive<java.lang.Short,ShortConsumer,ShortSpliterator>
Spliterator.trySplit()
.default ShortComparator getComparator()
getComparator
in interface java.util.Spliterator<java.lang.Short>
Spliterator.getComparator()
.