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 privateCollisionLeaf(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 Vget(K key, int hash, int bitsConsumed)private intindexOfKey(K key)PersistentHashArrayMappedTrie.Node<K,V>put(K key, V value, int hash, int bitsConsumed)intsize()java.lang.StringtoString()
-
-
-
Method Detail
-
size
public int size()
- Specified by:
sizein interfacePersistentHashArrayMappedTrie.Node<K,V>
-
get
public V get(K key, int hash, int bitsConsumed)
- Specified by:
getin interfacePersistentHashArrayMappedTrie.Node<K,V>
-
put
public PersistentHashArrayMappedTrie.Node<K,V> put(K key, V value, int hash, int bitsConsumed)
- Specified by:
putin interfacePersistentHashArrayMappedTrie.Node<K,V>
-
indexOfKey
private int indexOfKey(K key)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-