public class NBTreeSetImpl<T extends Comparable<T>> extends Object implements NBTreeSet<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
NBTreeSetImpl.JavaCompatibleBTree<T extends Comparable<T>> |
| Constructor and Description |
|---|
NBTreeSetImpl()
Constructor for B-Tree which defaults to a 2-3 B-Tree.
|
NBTreeSetImpl(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 NBTreeSetImpl()
public NBTreeSetImpl(int order)
order - of the B-Tree.public T remove(T value)
remove in interface NBTreeSet<T extends Comparable<T>>public void clear()
clear in interface NBTreeSet<T extends Comparable<T>>public boolean contains(T value)
contains in interface NBTreeSet<T extends Comparable<T>>public T getCurrentValue(T value)
getCurrentValue in interface NBTreeSet<T extends Comparable<T>>value - to find in the tree.public int size()
size in interface NBTreeSet<T extends Comparable<T>>public boolean validate()
validate in interface NBTreeSet<T extends Comparable<T>>public Collection<T> toCollection()
toCollection in interface NBTreeSet<T extends Comparable<T>>Copyright © 2026 vpc open source initiative. All rights reserved.