Interface IterableMap

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      MapIterator mapIterator()
      Deprecated.
      Obtains a MapIterator over the map.
      • Methods inherited from interface java.util.Map

        clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
    • Method Detail

      • mapIterator

        MapIterator mapIterator()
        Deprecated.
        Obtains a MapIterator over the map.

        A map iterator is an efficient way of iterating over maps. There is no need to access the entry set or cast to Map Entry objects.

         IterableMap map = new HashedMap();
         MapIterator it = map.mapIterator();
         while (it.hasNext()) {
           Object key = it.next();
           Object value = it.getValue();
           it.setValue("newValue");
         }
         
        Returns:
        a map iterator