Class SetView.SetViewIterator<E>

  • Type Parameters:
    E - the type contains in the set
    All Implemented Interfaces:
    java.util.Iterator<E>
    Enclosing class:
    SetView<E>

    public static class SetView.SetViewIterator<E>
    extends java.lang.Object
    implements java.util.Iterator<E>
    Iterator.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Iterator<E> current  
      private java.util.Iterator<java.util.Set<E>> sets  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      E next()  
      • Methods inherited from class java.lang.Object

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

        forEachRemaining, remove
    • Field Detail

      • sets

        private java.util.Iterator<java.util.Set<E>> sets
      • current

        private java.util.Iterator<E> current
    • Constructor Detail

      • SetViewIterator

        public SetViewIterator​(SetView<E> view)
    • Method Detail

      • hasNext

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

        public E next()
        Specified by:
        next in interface java.util.Iterator<E>