Class ByteIterators.UnmodifiableListIterator

java.lang.Object
it.unimi.dsi.fastutil.bytes.ByteIterators.UnmodifiableListIterator
All Implemented Interfaces:
it.unimi.dsi.fastutil.BidirectionalIterator<Byte>, ByteBidirectionalIterator, it.unimi.dsi.fastutil.bytes.ByteIterator, ByteListIterator, it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator<Byte>, it.unimi.dsi.fastutil.objects.ObjectIterator<Byte>, Iterator<Byte>, ListIterator<Byte>, PrimitiveIterator<Byte,it.unimi.dsi.fastutil.bytes.ByteConsumer>
Enclosing class:
ByteIterators

public static class ByteIterators.UnmodifiableListIterator extends Object implements ByteListIterator
An unmodifiable wrapper class for list iterators.
  • Field Details

  • Constructor Details

    • UnmodifiableListIterator

      public UnmodifiableListIterator(ByteListIterator i)
  • Method Details

    • hasNext

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

      public boolean hasPrevious()
      Specified by:
      hasPrevious in interface it.unimi.dsi.fastutil.BidirectionalIterator<Byte>
      Specified by:
      hasPrevious in interface ListIterator<Byte>
    • nextByte

      public byte nextByte()
      Specified by:
      nextByte in interface it.unimi.dsi.fastutil.bytes.ByteIterator
    • previousByte

      public byte previousByte()
      Description copied from interface: ByteBidirectionalIterator
      Returns the previous element as a primitive type.
      Specified by:
      previousByte in interface ByteBidirectionalIterator
      Returns:
      the previous element in the iteration.
      See Also:
    • nextIndex

      public int nextIndex()
      Specified by:
      nextIndex in interface ListIterator<Byte>
    • previousIndex

      public int previousIndex()
      Specified by:
      previousIndex in interface ListIterator<Byte>
    • forEachRemaining

      public void forEachRemaining(it.unimi.dsi.fastutil.bytes.ByteConsumer action)
      Specified by:
      forEachRemaining in interface it.unimi.dsi.fastutil.bytes.ByteIterator
      Specified by:
      forEachRemaining in interface PrimitiveIterator<Byte,it.unimi.dsi.fastutil.bytes.ByteConsumer>
    • forEachRemaining

      @Deprecated public void forEachRemaining(Consumer<? super Byte> action)
      Deprecated.
      Specified by:
      forEachRemaining in interface it.unimi.dsi.fastutil.bytes.ByteIterator
      Specified by:
      forEachRemaining in interface Iterator<Byte>