Class GenericMap<K,V>

java.lang.Object
org.apache.ofbiz.base.util.collections.GenericMap<K,V>
All Implemented Interfaces:
Serializable, Map<K,V>, Appender<StringBuilder>

public abstract class GenericMap<K,V> extends Object implements Appender<StringBuilder>, Map<K,V>, Serializable
See Also:
  • Constructor Details

    • GenericMap

      public GenericMap()
  • Method Details

    • getModCount

      public int getModCount()
      Gets mod count.
      Returns:
      the mod count
    • incrementModCount

      protected void incrementModCount()
      Increment mod count.
    • clear

      public final void clear()
      Specified by:
      clear in interface Map<K,V>
    • clearInternal

      protected abstract void clearInternal()
    • containsValue

      public boolean containsValue(Object value)
      Specified by:
      containsValue in interface Map<K,V>
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Map<K,V>
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in interface Map<K,V>
      Overrides:
      equals in class Object
    • get

      public final V get(Object key)
      Specified by:
      get in interface Map<K,V>
    • get

      protected abstract V get(Object key, boolean noteAccess)
    • entrySet

      public final Set<Map.Entry<K,V>> entrySet()
      Specified by:
      entrySet in interface Map<K,V>
    • iterator

      protected abstract Iterator<Map.Entry<K,V>> iterator(boolean noteAccess)
    • keySet

      public final Set<K> keySet()
      Specified by:
      keySet in interface Map<K,V>
    • values

      public final Collection<V> values()
      Specified by:
      values in interface Map<K,V>
    • remove

      public final V remove(Object key)
      Specified by:
      remove in interface Map<K,V>
    • removeInternal

      protected abstract V removeInternal(Object key, boolean incrementModCount)
    • putAll

      public final void putAll(Map<? extends K,? extends V> map)
      Specified by:
      putAll in interface Map<K,V>
    • putAllIterator

      protected abstract <KE extends K, VE extends V> void putAllIterator(Iterator<Map.Entry<KE,VE>> it)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • appendTo

      public StringBuilder appendTo(StringBuilder sb)
      Specified by:
      appendTo in interface Appender<K>