BTreeSetpublic class BTreeSet extends AbstractSet implements Set
Fields Summary |
---|
public BTreeNode | root | private Comparator | comparator | private int | order | private int | size |
Constructors Summary |
---|
public BTreeSet()
/*
* Constructors
* A no-arg constructor is supported in accordance with the specifications of the
* java.util.Collections interface. If the order for the B-Tree is not specified
* at construction it defaults to 32.
*/
this(6); // Default order for a BTreeSet is 32
| public BTreeSet(Collection c)
this(6); // Default order for a BTreeSet is 32
addAll(c);
| public BTreeSet(int order)
this(order, null);
| public BTreeSet(int order, Comparator comparator)
this.order = order;
this.comparator = comparator;
root = new BTreeNode(null);
|
|