Class SafeHashMap.EntrySet.EntrySetIterator

  • All Implemented Interfaces:
    Enumeration, Iterator
    Enclosing class:

    protected class SafeHashMap.EntrySet.EntrySetIterator
    An Iterator over the EntrySet that is backed by the SafeHashMap.
    • Constructor Detail

      • EntrySetIterator

        protected EntrySetIterator()
        Construct an Iterator over the Entries in the SafeHashMap. Special care must be taken to handle the condition in which the SafeHashMap is currently resizing.
    • Method Detail

      • advance

        protected void advance()
        Advance to the next object.
        Specified by:
        advance in class
      • remove

        protected void remove​(Object oPrev)
        Remove the specified item.

        This is an optional operation. If the Iterator supports element removal, then it should implement this method, which is delegated to by the AbstractStableIterator.remove() method.

        remove in class
        oPrev - the previously iterated object that should be removed
      • deactivate

        protected void deactivate()
        Shut down the Iterator. This is done on exhaustion of the contents of the Iterator, or on finalization of the Iterator.