java.lang.Object
swim.collections.HashTrieMap<K,V>
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
static int
compareKeyHashes
(int aHash, int bHash) static int
compareKeys
(Object a, Object b) boolean
containsKey
(Object key) boolean
containsValue
(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()
boolean
static <K,
V> HashTrieMap<K, V> int
hashCode()
head()
headKey()
boolean
isEmpty()
iterator()
keySet()
static <K,
V> HashTrieMap<K, HashTrieSet<V>> merged
(HashTrieMap<K, HashTrieSet<V>> multimap, HashTrieMap<K, HashTrieSet<V>> that) void
static <K,
V> HashTrieMap<K, HashTrieSet<V>> removed
(HashTrieMap<K, HashTrieSet<V>> multimap, K key, V value) int
size()
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, 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 Details
-
isEmpty
public boolean isEmpty() -
size
public int size() -
containsKey
- Specified by:
containsKey
in interfaceMap<K,
V>
-
containsValue
- Specified by:
containsValue
in 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:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
. -
toString
-
empty
-
from
-
compareKeys
-
compareKeyHashes
public static int compareKeyHashes(int aHash, int bHash)
-