public class BTreeSet<T extends Comparable<T>> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BTreeSet.JavaCompatibleBTree<T extends Comparable<T>> |
| Constructor and Description |
|---|
BTreeSet()
Constructor for B-Tree which defaults to a 2-3 B-Tree.
|
BTreeSet(int order)
Constructor for B-Tree of ordered parameter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T value) |
void |
clear() |
boolean |
contains(T value) |
T |
getCurrentValue(T value)
Get the node with value.
|
T |
remove(T value) |
int |
size() |
Collection<T> |
toCollection() |
String |
toString() |
boolean |
validate() |
public BTreeSet()
public BTreeSet(int order)
order - of the B-Tree.public boolean add(T value)
public void clear()
public boolean contains(T value)
public T getCurrentValue(T value)
value - to find in the tree.public int size()
public boolean validate()
public Collection<T> toCollection()
Copyright © 2022 vpc open source initiative. All rights reserved.