Class HashArrayMappedTrieModule.LeafNode<K,V>
java.lang.Object
io.vavr.collection.HashArrayMappedTrieModule.AbstractNode<K,V>
io.vavr.collection.HashArrayMappedTrieModule.LeafNode<K,V>
- Type Parameters:
K- Key typeV- Value type
- All Implemented Interfaces:
HashArrayMappedTrie<K,V>, Serializable, Iterable<Tuple2<K, V>>
- Direct Known Subclasses:
HashArrayMappedTrieModule.LeafList, HashArrayMappedTrieModule.LeafSingleton
- Enclosing interface:
HashArrayMappedTrieModule
public abstract static class HashArrayMappedTrieModule.LeafNode<K,V>
extends HashArrayMappedTrieModule.AbstractNode<K,V>
Representation of a HAMT leaf.
- See Also:
-
Field Summary
FieldsFields inherited from class HashArrayMappedTrieModule.AbstractNode
BUCKET_SIZE, MAX_INDEX_NODE, MIN_ARRAY_NODE, SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) abstract inthash()booleanisEmpty()(package private) abstract Kkey()(package private) static <K,V> HashArrayMappedTrieModule.AbstractNode <K, V> mergeLeaves(int shift, HashArrayMappedTrieModule.LeafNode<K, V> leaf1, HashArrayMappedTrieModule.LeafSingleton<K, V> leaf2) (package private) abstract Vvalue()Methods inherited from class HashArrayMappedTrieModule.AbstractNode
containsKey, fromBitmap, get, getOrElse, hashFragment, insert, iterator, keysIterator, lookup, lookup, modify, nodes, put, remove, remove, toBitmap, toString, update, valuesIteratorMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface HashArrayMappedTrie
sizeMethods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
LeafNode
public LeafNode()
-
-
Method Details
-
key
-
value
-
hash
abstract int hash() -
mergeLeaves
static <K,V> HashArrayMappedTrieModule.AbstractNode<K,V> mergeLeaves(int shift, HashArrayMappedTrieModule.LeafNode<K, V> leaf1, HashArrayMappedTrieModule.LeafSingleton<K, V> leaf2) -
isEmpty
public boolean isEmpty()
-