Package boofcv.misc

Class IteratorRange<T>

java.lang.Object
boofcv.misc.IteratorRange<T>
All Implemented Interfaces:
IteratorReset<T>, Iterator<T>

public class IteratorRange<T> extends Object implements IteratorReset<T>
Implements Iterator for a range of numbers in a List.
  • Constructor Details

    • IteratorRange

      public IteratorRange(List<T> list, int idx0, int idx1)
  • Method Details

    • reset

      public void reset(int idx0, int idx1)
    • reset

      public void reset()
      Description copied from interface: IteratorReset
      Returns the iterator to its original state allowing it to be reused
      Specified by:
      reset in interface IteratorReset<T>
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<T>
    • next

      public T next()
      Specified by:
      next in interface Iterator<T>