java.lang.Object
net.i2p.router.util.RemovableSingletonSet.RSSIterator
All Implemented Interfaces:
Iterator<E>
Enclosing class:
RemovableSingletonSet<E>

private class RemovableSingletonSet.RSSIteratorextends Object implements Iterator<E>
Walks the set's single element.
  • Field Details

    • done

      boolean done
      True once the element has been returned.
  • Constructor Details

    • RSSIterator

      private RSSIterator()
      Walks the set's single element.
  • Method Details

    • hasNext

      public boolean hasNext()
      Whether the next element is present.
      Specified by:
      hasNext in interface Iterator<E>
      Returns:
      whether next is present
    • next

      public E next()
      Return the single element.
      Specified by:
      next in interface Iterator<E>
    • remove

      public void remove()
      Remove the single element after next() has been called.
      Specified by:
      remove in interface Iterator<E>