Interface HashArrayMappedTrie<K,V>
- All Superinterfaces:
Iterable<Tuple2<K,V>>, Serializable
- All Known Implementing Classes:
HashArrayMappedTrieModule.AbstractNode, HashArrayMappedTrieModule.ArrayNode, HashArrayMappedTrieModule.EmptyNode, HashArrayMappedTrieModule.IndexedNode, HashArrayMappedTrieModule.LeafList, HashArrayMappedTrieModule.LeafNode, HashArrayMappedTrieModule.LeafSingleton
An immutable Hash array mapped trie (HAMT).
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(K key) static <K,V> HashArrayMappedTrie <K, V> empty()booleanisEmpty()iterator()Provide unboxed access to the keys in the trie.intsize()Provide unboxed access to the values in the trie.Methods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
serialVersionUID
static final long serialVersionUID- See Also:
-
-
Method Details
-
empty
-
isEmpty
boolean isEmpty() -
size
int size() -
get
-
getOrElse
-
containsKey
-
put
-
remove
-
iterator
-
keysIterator
-
valuesIterator
-