public static class MapNodes.Node<K,V>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.lang.Object[] |
content |
int |
datamap |
static MapNodes.Node |
EMPTY |
int[] |
hashes |
int |
nodemap |
static int |
SHIFT_INCREMENT |
| Constructor and Description |
|---|
Node() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Iterable<IEntry<K,V>> |
entries() |
boolean |
equals(io.lacuna.bifurcan.nodes.MapNodes.INode<K,V> o,
java.util.function.BiPredicate<K,K> keyEquals,
java.util.function.BiPredicate<V,V> valEquals) |
int |
hash(int idx) |
long |
indexOf(int shift,
int hash,
K key,
java.util.function.BiPredicate<K,K> equals) |
java.util.Iterator<IEntry<K,V>> |
iterator() |
<U> MapNodes.Node<K,U> |
mapVals(java.lang.Object editor,
java.util.function.BiFunction<K,V,U> f) |
IEntry<K,V> |
nth(long idx) |
MapNodes.Node<K,V> |
put(int shift,
java.lang.Object editor,
int hash,
K key,
V value,
java.util.function.BiPredicate<K,K> equals,
java.util.function.BinaryOperator<V> merge) |
io.lacuna.bifurcan.nodes.MapNodes.INode<K,V> |
remove(int shift,
java.lang.Object editor,
int hash,
K key,
java.util.function.BiPredicate<K,K> equals) |
long |
size() |
public static final MapNodes.Node EMPTY
public static final int SHIFT_INCREMENT
public int datamap
public int nodemap
public int[] hashes
public java.lang.Object[] content
public int hash(int idx)
public MapNodes.Node<K,V> put(int shift, java.lang.Object editor, int hash, K key, V value, java.util.function.BiPredicate<K,K> equals, java.util.function.BinaryOperator<V> merge)
public io.lacuna.bifurcan.nodes.MapNodes.INode<K,V> remove(int shift, java.lang.Object editor, int hash, K key, java.util.function.BiPredicate<K,K> equals)
public <U> MapNodes.Node<K,U> mapVals(java.lang.Object editor, java.util.function.BiFunction<K,V,U> f)
public long size()