Package arc.struct

Class ObjectSet.ObjectSetIterator

java.lang.Object
arc.struct.ObjectSet.ObjectSetIterator
All Implemented Interfaces:
Iterable<T>, Iterator<T>
Direct Known Subclasses:
OrderedSet.OrderedSetIterator
Enclosing class:
ObjectSet<T>

public class ObjectSet.ObjectSetIterator extends Object implements Iterable<T>, Iterator<T>
  • Field Details

    • hasNext

      public boolean hasNext
  • Constructor Details

    • ObjectSetIterator

      public ObjectSetIterator()
  • Method Details

    • reset

      public void reset()
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<T>
    • hasNext

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

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

      public ObjectSet<T>.ObjectSetIterator iterator()
      Specified by:
      iterator in interface Iterable<T>
    • toSeq

      public Seq<T> toSeq(Seq<T> array)
      Adds the remaining values to the array.
    • toSeq

      public Seq<T> toSeq()
      Returns a new array containing the remaining values.