- java.lang.Object
-
- swim.collections.HashTrieMap<K,V>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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>
debug(Output<T> 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()
boolean
equals(Object other)
static <K,V>
HashTrieMap<K,V>from(Map<? extends K,? extends V> map)
V
get(Object key)
int
hashCode()
Map.Entry<K,V>
head()
K
headKey()
V
headValue()
boolean
isEmpty()
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)
K
nextKey(Object key)
V
nextValue(Object key)
V
put(K key, V value)
void
putAll(Map<? extends K,? extends V> map)
V
remove(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)
int
size()
String
toString()
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
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceMap<K,V>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceMap<K,V>
-
headKey
public K headKey()
-
headValue
public V headValue()
-
updated
public HashTrieMap<K,V> updated(K key, V value)
-
updated
public static <K,V> HashTrieMap<K,HashTrieSet<V>> updated(HashTrieMap<K,HashTrieSet<V>> multimap, K key, V value)
-
removed
public HashTrieMap<K,V> removed(Object key)
-
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)
-
equals
public boolean equals(Object other)
-
hashCode
public int hashCode()
-
debug
public <T> Output<T> debug(Output<T> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
empty
public static <K,V> HashTrieMap<K,V> empty()
-
from
public static <K,V> HashTrieMap<K,V> from(Map<? extends K,? extends V> map)
-
compareKeyHashes
public static int compareKeyHashes(int aHash, int bHash)
-
-