Class ListOrderedSet.OrderedSetIterator<E>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private E last
      Last object retrieved
      private java.util.Collection<E> set
      Object we iterate on
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private OrderedSetIterator​(java.util.ListIterator<E> iterator, java.util.Collection<E> set)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasPrevious()
      Checks to see if there is a previous element that can be iterated to.
      E next()
      E previous()
      Gets the previous element from the container.
      void remove()  
      • 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, hasNext
    • Field Detail

      • set

        private final java.util.Collection<E> set
        Object we iterate on
      • last

        private E last
        Last object retrieved
    • Constructor Detail

      • OrderedSetIterator

        private OrderedSetIterator​(java.util.ListIterator<E> iterator,
                                   java.util.Collection<E> set)