Package io.grpc
Class PersistentHashArrayMappedTrie.CollisionLeaf<K,V>
- java.lang.Object
-
- io.grpc.PersistentHashArrayMappedTrie.CollisionLeaf<K,V>
-
- All Implemented Interfaces:
PersistentHashArrayMappedTrie.Node<K,V>
- Enclosing class:
- PersistentHashArrayMappedTrie
static final class PersistentHashArrayMappedTrie.CollisionLeaf<K,V> extends java.lang.Object implements PersistentHashArrayMappedTrie.Node<K,V>
-
-
Constructor Summary
Constructors Modifier Constructor Description private
CollisionLeaf(K[] keys, V[] values)
(package private)
CollisionLeaf(K key1, V value1, K key2, V value2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
get(K key, int hash, int bitsConsumed)
private int
indexOfKey(K key)
PersistentHashArrayMappedTrie.Node<K,V>
put(K key, V value, int hash, int bitsConsumed)
int
size()
java.lang.String
toString()
-
-
-
Method Detail
-
size
public int size()
- Specified by:
size
in interfacePersistentHashArrayMappedTrie.Node<K,V>
-
get
public V get(K key, int hash, int bitsConsumed)
- Specified by:
get
in interfacePersistentHashArrayMappedTrie.Node<K,V>
-
put
public PersistentHashArrayMappedTrie.Node<K,V> put(K key, V value, int hash, int bitsConsumed)
- Specified by:
put
in interfacePersistentHashArrayMappedTrie.Node<K,V>
-
indexOfKey
private int indexOfKey(K key)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-