Interface ByteIterator

All Superinterfaces:
All Known Subinterfaces:
ByteBidirectionalIterator, ByteBigListIterator, ByteListIterator
All Known Implementing Classes:
AbstractByteBidirectionalIterator, AbstractByteBigListIterator, AbstractByteIterator, AbstractByteListIterator, ByteBigListIterators.BigListIteratorListIterator, ByteBigListIterators.EmptyBigListIterator, ByteBigListIterators.UnmodifiableBigListIterator, ByteIterators.EmptyIterator, ByteIterators.UnmodifiableBidirectionalIterator, ByteIterators.UnmodifiableIterator, ByteIterators.UnmodifiableListIterator

public interface ByteIterator
extends Iterator<Byte>
A type-specific Iterator; provides an additional method to avoid (un)boxing, and the possibility to skip elements.
See Also:
  • Method Summary

    Modifier and Type Method Description
    default void forEachRemaining​(ByteConsumer action)
    Performs the given action for each remaining element until all elements have been processed or the action throws an exception.
    default void forEachRemaining​(Consumer<? super Byte> action)
    Please use the corresponding type-specific method instead.
    default Byte next()
    Please use the corresponding type-specific method instead.
    byte nextByte()
    Returns the next element as a primitive type.
    default int skip​(int n)
    Skips the given number of elements.

    Methods inherited from interface java.util.Iterator

    hasNext, remove