Class EnumLongMap.ValueIterator

java.lang.Object
com.github.tommyettinger.ds.EnumLongMap.MapIterator
com.github.tommyettinger.ds.EnumLongMap.ValueIterator
All Implemented Interfaces:
LongIterator, Iterator<Long>
Enclosing class:
EnumLongMap

public static class EnumLongMap.ValueIterator extends EnumLongMap.MapIterator implements LongIterator
  • Constructor Details

    • ValueIterator

      public ValueIterator(EnumLongMap map)
  • Method Details

    • nextLong

      public long nextLong()
      Returns the next long element in the iteration.
      Specified by:
      nextLong in interface LongIterator
      Returns:
      the next long element in the iteration
      Throws:
      NoSuchElementException - if the iteration has no more elements
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<Long>