Class MapContainerPolicy.MapContainerPolicyIterator

  • All Implemented Interfaces:
    java.util.Iterator
    Enclosing class:
    MapContainerPolicy

    public static class MapContainerPolicy.MapContainerPolicyIterator
    extends java.lang.Object
    implements java.util.Iterator
    INTERNAL: This inner class is used to iterate through the Map.Entry s of a Map. It maintains a pointer to the current entry to allow access to the key and the value.
    Author:
    tware
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getCurrentKey()  
      java.lang.Object getCurrentValue()  
      boolean hasNext()  
      java.util.Map.Entry next()  
      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
    • Constructor Detail

      • MapContainerPolicyIterator

        public MapContainerPolicyIterator​(java.util.Map container)
    • Method Detail

      • hasNext

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

        public java.util.Map.Entry next()
        Specified by:
        next in interface java.util.Iterator
      • getCurrentKey

        public java.lang.Object getCurrentKey()
      • getCurrentValue

        public java.lang.Object getCurrentValue()
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator