Class MMap<K,V>
- java.lang.Object
-
- org.eclipse.aether.util.graph.manager.MMap<K,V>
-
- Type Parameters:
K-V-
public class MMap<K,V> extends java.lang.Object
Warning: this is a special map-like construct that suits only and should be used only in this package! It has the following properties:- memorizes once calculated hashCode
- once hashCode calculated, goes into "read only" mode (put method will fail)
- otherwise all the rest is same as for
HashMap
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsKey(K key)static <K,V>
MMap<K,V>copy(MMap<K,V> orig)static <K,V>
MMap<K,java.util.Collection<V>>copyWithKey(K key, MMap<K,java.util.Collection<V>> orig)MMap<K,V>done()static <K,V>
MMap<K,V>empty()Returns empty "done" (immutable) MMap.static <K,V>
MMap<K,V>emptyNotDone()Returns empty "not done" (mutable) MMap.booleanequals(java.lang.Object o)Vget(K key)inthashCode()Vput(K key, V value)
-
-
-
Method Detail
-
emptyNotDone
public static <K,V> MMap<K,V> emptyNotDone()
Returns empty "not done" (mutable) MMap.
-
copyWithKey
public static <K,V> MMap<K,java.util.Collection<V>> copyWithKey(K key, MMap<K,java.util.Collection<V>> orig)
-
containsKey
public boolean containsKey(K key)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-