Class GenericMap<K,V>
- java.lang.Object
-
- org.apache.ofbiz.base.util.collections.GenericMap<K,V>
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.Map<K,V>
,Appender<java.lang.StringBuilder>
- Direct Known Subclasses:
GenericMapTest.TestGenericMap
public abstract class GenericMap<K,V> extends java.lang.Object implements Appender<java.lang.StringBuilder>, java.util.Map<K,V>, java.io.Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
GenericMap.GenericMapIterator<DEST>
-
Constructor Summary
Constructors Constructor Description GenericMap()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.StringBuilder
appendTo(java.lang.StringBuilder sb)
void
clear()
protected abstract void
clearInternal()
boolean
containsValue(java.lang.Object value)
java.util.Set<java.util.Map.Entry<K,V>>
entrySet()
boolean
equals(java.lang.Object o)
protected boolean
equalsGenericMap(GenericMap<?,?> map)
protected boolean
equalsMap(java.util.Map<?,?> map)
V
get(java.lang.Object key)
protected abstract V
get(java.lang.Object key, boolean noteAccess)
int
getModCount()
int
hashCode()
protected void
incrementModCount()
protected abstract java.util.Iterator<java.util.Map.Entry<K,V>>
iterator(boolean noteAccess)
java.util.Set<K>
keySet()
void
putAll(java.util.Map<? extends K,? extends V> map)
protected abstract <KE extends K,VE extends V>
voidputAllIterator(java.util.Iterator<java.util.Map.Entry<KE,VE>> it)
V
remove(java.lang.Object key)
protected abstract V
removeInternal(java.lang.Object key, boolean incrementModCount)
java.lang.String
toString()
java.util.Collection<V>
values()
-
-
-
Method Detail
-
getModCount
public int getModCount()
-
incrementModCount
protected void incrementModCount()
-
clearInternal
protected abstract void clearInternal()
-
containsValue
public boolean containsValue(java.lang.Object value)
-
hashCode
public int hashCode()
-
equals
public boolean equals(java.lang.Object o)
-
equalsGenericMap
protected boolean equalsGenericMap(GenericMap<?,?> map)
-
equalsMap
protected boolean equalsMap(java.util.Map<?,?> map)
-
get
protected abstract V get(java.lang.Object key, boolean noteAccess)
-
iterator
protected abstract java.util.Iterator<java.util.Map.Entry<K,V>> iterator(boolean noteAccess)
-
values
public final java.util.Collection<V> values()
-
remove
public final V remove(java.lang.Object key)
-
removeInternal
protected abstract V removeInternal(java.lang.Object key, boolean incrementModCount)
-
putAllIterator
protected abstract <KE extends K,VE extends V> void putAllIterator(java.util.Iterator<java.util.Map.Entry<KE,VE>> it)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-