Class ShortIterators.UnmodifiableBidirectionalIterator

java.lang.Object
it.unimi.dsi.fastutil.shorts.ShortIterators.UnmodifiableBidirectionalIterator
All Implemented Interfaces:
it.unimi.dsi.fastutil.BidirectionalIterator<Short>, it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator<Short>, it.unimi.dsi.fastutil.objects.ObjectIterator<Short>, ShortBidirectionalIterator, it.unimi.dsi.fastutil.shorts.ShortIterator, Iterator<Short>, PrimitiveIterator<Short,it.unimi.dsi.fastutil.shorts.ShortConsumer>
Enclosing class:
ShortIterators

public static class ShortIterators.UnmodifiableBidirectionalIterator extends Object implements ShortBidirectionalIterator
An unmodifiable wrapper class for bidirectional iterators.
  • Field Details

  • Constructor Details

  • Method Details

    • hasNext

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

      public boolean hasPrevious()
      Specified by:
      hasPrevious in interface it.unimi.dsi.fastutil.BidirectionalIterator<Short>
    • nextShort

      public short nextShort()
      Specified by:
      nextShort in interface it.unimi.dsi.fastutil.shorts.ShortIterator
    • previousShort

      public short previousShort()
      Description copied from interface: ShortBidirectionalIterator
      Returns the previous element as a primitive type.
      Specified by:
      previousShort in interface ShortBidirectionalIterator
      Returns:
      the previous element in the iteration.
      See Also:
    • forEachRemaining

      public void forEachRemaining(it.unimi.dsi.fastutil.shorts.ShortConsumer action)
      Specified by:
      forEachRemaining in interface PrimitiveIterator<Short,it.unimi.dsi.fastutil.shorts.ShortConsumer>
      Specified by:
      forEachRemaining in interface it.unimi.dsi.fastutil.shorts.ShortIterator
    • forEachRemaining

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