Class ByteIterators.UnmodifiableIterator

java.lang.Object
it.unimi.dsi.fastutil.bytes.ByteIterators.UnmodifiableIterator
All Implemented Interfaces:
ByteIterator, Iterator<Byte>
Enclosing class:
ByteIterators

public static class ByteIterators.UnmodifiableIterator
extends Object
implements ByteIterator
An unmodifiable wrapper class for iterators.
  • Constructor Details

    • UnmodifiableIterator

      public UnmodifiableIterator​(ByteIterator i)
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<Byte>
    • nextByte

      public byte nextByte()
      Description copied from interface: ByteIterator
      Returns the next element as a primitive type.
      Specified by:
      nextByte in interface ByteIterator
      Returns:
      the next element in the iteration.
      See Also:
      Iterator.next()