java.lang.Object
swim.collections.HashTrieMap<K,V>
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()static intcompareKeyHashes(int aHash, int bHash) static intcompareKeys(Object a, Object b) booleancontainsKey(Object key) booleancontainsValue(Object value) <T> Output<T>Writes a developer readable, debug-formatted string representation of this object tooutput.static <K,V> HashTrieMap<K, V> empty()entrySet()booleanstatic <K,V> HashTrieMap<K, V> inthashCode()head()headKey()booleanisEmpty()iterator()keySet()static <K,V> HashTrieMap<K, HashTrieSet<V>> merged(HashTrieMap<K, HashTrieSet<V>> multimap, HashTrieMap<K, HashTrieSet<V>> that) voidstatic <K,V> HashTrieMap<K, HashTrieSet<V>> removed(HashTrieMap<K, HashTrieSet<V>> multimap, K key, V value) intsize()toString()static <K,V> HashTrieMap<K, HashTrieSet<V>> updated(HashTrieMap<K, HashTrieSet<V>> multimap, K key, V value) values()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Method Details
-
isEmpty
public boolean isEmpty() -
size
public int size() -
containsKey
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
head
-
headKey
-
headValue
-
next
-
nextKey
-
nextValue
-
get
-
put
-
putAll
-
remove
-
clear
public void clear() -
updated
-
updated
public static <K,V> HashTrieMap<K,HashTrieSet<V>> updated(HashTrieMap<K, HashTrieSet<V>> multimap, K key, V value) -
updated
-
removed
-
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) -
entrySet
-
keySet
-
values
-
iterator
-
keyIterator
-
valueIterator
-
equals
-
hashCode
public int hashCode() -
debug
Description copied from interface:DebugWrites a developer readable, debug-formatted string representation of this object tooutput. -
toString
-
empty
-
from
-
compareKeys
-
compareKeyHashes
public static int compareKeyHashes(int aHash, int bHash)
-