public interface ByteSpliterator extends java.util.Spliterator.OfPrimitive<java.lang.Byte,ByteConsumer,ByteSpliterator>
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.Byte> action)
Deprecated.
Please use the corresponding type-specific method instead.
|
default ByteComparator |
getComparator() |
default long |
skip(long n)
Skips the given number of elements.
|
default boolean |
tryAdvance(java.util.function.Consumer<? super java.lang.Byte> action)
Deprecated.
Please use the corresponding type-specific method instead.
|
ByteSpliterator |
trySplit() |
@Deprecated default boolean tryAdvance(java.util.function.Consumer<? super java.lang.Byte> action)
tryAdvance in interface java.util.Spliterator<java.lang.Byte>@Deprecated default void forEachRemaining(java.util.function.Consumer<? super java.lang.Byte> action)
forEachRemaining in interface java.util.Spliterator<java.lang.Byte>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.Byte>) for
n times (possibly stopping if tryAdvance(java.util.function.Consumer<? super java.lang.Byte>) 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>)ByteSpliterator trySplit()
trySplit in interface java.util.Spliterator<java.lang.Byte>trySplit in interface java.util.Spliterator.OfPrimitive<java.lang.Byte,ByteConsumer,ByteSpliterator>default ByteComparator getComparator()
getComparator in interface java.util.Spliterator<java.lang.Byte>