public class Node<K extends Comparable<K>> extends Object
| Constructor and Description |
|---|
Node() |
| Modifier and Type | Method and Description |
|---|---|
AddResult<K> |
add(K value) |
boolean |
contains(K value) |
Node<K> |
createCopy() |
KeyIndex<K> |
get(int index) |
K |
get(K entry) |
HashWithCount |
getHashWithCount() |
int |
getHeight() |
int |
getSize() |
K |
getValue() |
Node<K> |
init(K value) |
Node<K> |
init(K value,
int height,
int size,
byte[] leftHash,
Node<K> leftNode,
byte[] rightHash,
Node<K> rightNode) |
Node<K> |
init(K key,
Node<K> leftNode,
Node<K> rightNode) |
boolean |
isLeafNode() |
IterateFunct.Loop |
iterateNodes(IterateFunct<K> func) |
protected Node<K> |
newNode() |
boolean |
remove(K entry) |
byte[] |
save() |
Node<K> |
setHashFunction(Hashing<K> hash) |
String |
toPrettyString() |
public Node<K> init(K value, int height, int size, byte[] leftHash, Node<K> leftNode, byte[] rightHash, Node<K> rightNode)
public K getValue()
public int getHeight()
public int getSize()
public boolean contains(K value)
public boolean remove(K entry)
public String toPrettyString()
public boolean isLeafNode()
public IterateFunct.Loop iterateNodes(IterateFunct<K> func)
public HashWithCount getHashWithCount()
public byte[] save()
Copyright © 2018. All rights reserved.