Class IntFloatMap.ValueIterator

java.lang.Object
com.github.tommyettinger.ds.IntFloatMap.MapIterator
com.github.tommyettinger.ds.IntFloatMap.ValueIterator
All Implemented Interfaces:
FloatIterator, Iterator<Float>
Enclosing class:
IntFloatMap

public static class IntFloatMap.ValueIterator extends IntFloatMap.MapIterator implements FloatIterator
  • Constructor Details

    • ValueIterator

      public ValueIterator(IntFloatMap map)
  • Method Details

    • nextFloat

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

      public boolean hasNext()
      Description copied from class: IntFloatMap.MapIterator
      Returns true if the iteration has more elements. (In other words, returns true if next() would return an element rather than throwing an exception.)
      Specified by:
      hasNext in interface Iterator<Float>
      Overrides:
      hasNext in class IntFloatMap.MapIterator
      Returns:
      true if the iteration has more elements