Package io.vavr.collection
Class HashArrayMappedTrieModule.EmptyNode<K,V>
java.lang.Object
io.vavr.collection.HashArrayMappedTrieModule.AbstractNode<K,V>
io.vavr.collection.HashArrayMappedTrieModule.EmptyNode<K,V>
- Type Parameters:
K
- Key typeV
- Value type
- All Implemented Interfaces:
HashArrayMappedTrie<K,
,V> Serializable
,Iterable<Tuple2<K,
V>>
- Enclosing interface:
HashArrayMappedTrieModule
public static final class HashArrayMappedTrieModule.EmptyNode<K,V>
extends HashArrayMappedTrieModule.AbstractNode<K,V>
implements Serializable
The empty node.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final HashArrayMappedTrieModule.EmptyNode
<?, ?> private static final long
Fields inherited from class io.vavr.collection.HashArrayMappedTrieModule.AbstractNode
BUCKET_SIZE, MAX_INDEX_NODE, MIN_ARRAY_NODE, SIZE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static <K,
V> HashArrayMappedTrieModule.EmptyNode <K, V> instance()
boolean
isEmpty()
(package private) V
(package private) HashArrayMappedTrieModule.AbstractNode
<K, V> modify
(int shift, int keyHash, K key, V value, HashArrayMappedTrieModule.Action action) nodes()
private Object
Instance control for object serialization.int
size()
Methods inherited from class io.vavr.collection.HashArrayMappedTrieModule.AbstractNode
containsKey, fromBitmap, get, getOrElse, hashFragment, insert, iterator, keysIterator, put, remove, remove, toBitmap, toString, update, valuesIterator
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
INSTANCE
-
-
Constructor Details
-
EmptyNode
private EmptyNode()
-
-
Method Details
-
instance
-
lookup
- Specified by:
lookup
in classHashArrayMappedTrieModule.AbstractNode<K,
V>
-
lookup
- Specified by:
lookup
in classHashArrayMappedTrieModule.AbstractNode<K,
V>
-
modify
HashArrayMappedTrieModule.AbstractNode<K,V> modify(int shift, int keyHash, K key, V value, HashArrayMappedTrieModule.Action action) - Specified by:
modify
in classHashArrayMappedTrieModule.AbstractNode<K,
V>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceHashArrayMappedTrie<K,
V>
-
size
public int size()- Specified by:
size
in interfaceHashArrayMappedTrie<K,
V>
-
nodes
- Overrides:
nodes
in classHashArrayMappedTrieModule.AbstractNode<K,
V>
-
readResolve
Instance control for object serialization.- Returns:
- The singleton instance of EmptyNode.
- See Also:
-