Class LongFloatMap.ValueIterator

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

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

  • 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: LongFloatMap.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 LongFloatMap.MapIterator
      Returns:
      true if the iteration has more elements