- java.lang.Object
-
- swim.collections.HashTrieMap<K,V>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(Object key)booleancontainsValue(Object value)voiddebug(Output<?> output)Writes a developer readable, debug-formatted string representation of this object tooutput.static <K,V>
HashTrieMap<K,V>empty()Set<Map.Entry<K,V>>entrySet()booleanequals(Object other)static <K,V>
HashTrieMap<K,V>from(Map<? extends K,? extends V> map)Vget(Object key)inthashCode()Map.Entry<K,V>head()KheadKey()VheadValue()booleanisEmpty()Iterator<Map.Entry<K,V>>iterator()Iterator<K>keyIterator()Set<K>keySet()static <K,V>
HashTrieMap<K,HashTrieSet<V>>merged(HashTrieMap<K,HashTrieSet<V>> multimap, HashTrieMap<K,HashTrieSet<V>> that)Map.Entry<K,V>next(Object key)KnextKey(Object key)VnextValue(Object key)static <K,V>
HashTrieMap<K,V>of(K key, V value)Vput(K key, V value)voidputAll(Map<? extends K,? extends V> map)Vremove(Object key)HashTrieMap<K,V>removed(Object key)static <K,V>
HashTrieMap<K,HashTrieSet<V>>removed(HashTrieMap<K,HashTrieSet<V>> multimap, K key, V value)intsize()StringtoString()HashTrieMap<K,V>updated(Map<? extends K,? extends V> map)HashTrieMap<K,V>updated(K key, V value)static <K,V>
HashTrieMap<K,HashTrieSet<V>>updated(HashTrieMap<K,HashTrieSet<V>> multimap, K key, V value)Iterator<V>valueIterator()Collection<V>values()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
empty
public static <K,V> HashTrieMap<K,V> empty()
-
of
public static <K,V> HashTrieMap<K,V> of(K key, V value)
-
from
public static <K,V> HashTrieMap<K,V> from(Map<? extends K,? extends V> map)
-
updated
public static <K,V> HashTrieMap<K,HashTrieSet<V>> updated(HashTrieMap<K,HashTrieSet<V>> multimap, K key, V value)
-
merged
public static <K,V> HashTrieMap<K,HashTrieSet<V>> merged(HashTrieMap<K,HashTrieSet<V>> multimap, HashTrieMap<K,HashTrieSet<V>> that)
-
removed
public static <K,V> HashTrieMap<K,HashTrieSet<V>> removed(HashTrieMap<K,HashTrieSet<V>> multimap, K key, V value)
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<K,V>
-
headKey
public K headKey()
-
headValue
public V headValue()
-
updated
public HashTrieMap<K,V> updated(K key, V value)
-
removed
public HashTrieMap<K,V> removed(Object key)
-
equals
public boolean equals(Object other)
-
hashCode
public int hashCode()
-
debug
public void debug(Output<?> output)
Description copied from interface:DebugWrites a developer readable, debug-formatted string representation of this object tooutput.
-
-