Class ObjectSet.ObjectSetIterator<K>

  • All Implemented Interfaces:
    java.lang.Iterable<K>, java.util.Iterator<K>
    Direct Known Subclasses:
    OrderedSet.OrderedSetIterator
    Enclosing class:
    ObjectSet<T>

    public static class ObjectSet.ObjectSetIterator<K>
    extends java.lang.Object
    implements java.lang.Iterable<K>, java.util.Iterator<K>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      boolean hasNext  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      ObjectSet.ObjectSetIterator<K> iterator()  
      K next()  
      void remove()  
      void reset()  
      Array<K> toArray()
      Returns a new array containing the remaining values.
      Array<K> toArray​(Array<K> array)
      Adds the remaining values to the array.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Field Detail

      • hasNext

        public boolean hasNext
    • Constructor Detail

      • ObjectSetIterator

        public ObjectSetIterator​(ObjectSet<K> set)
    • Method Detail

      • reset

        public void reset()
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<K>
      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<K>
      • next

        public K next()
        Specified by:
        next in interface java.util.Iterator<K>
      • toArray

        public Array<K> toArray​(Array<K> array)
        Adds the remaining values to the array.
      • toArray

        public Array<K> toArray()
        Returns a new array containing the remaining values.