public class TreeInt extends Tree<java.lang.Integer> implements ReadWriteable
| Modifier and Type | Field and Description |
|---|---|
int |
_key |
_preceding, _size, _subsequent| Constructor and Description |
|---|
TreeInt(int a_key) |
| Modifier and Type | Method and Description |
|---|---|
static TreeInt |
add(TreeInt tree,
int value) |
static Tree |
addAll(Tree tree,
IntIterator4 iter) |
int |
compare(Tree a_to)
returns 0, if keys are equal
uses this - other
returns positive if this is greater than a_to
returns negative if this is smaller than a_to
|
boolean |
duplicates() |
boolean |
equals(java.lang.Object obj) |
TreeInt |
find(int a_key) |
static TreeInt |
find(Tree a_in,
int a_key) |
java.lang.Integer |
key() |
int |
marshalledLength() |
int |
marshalledLength(int size) |
static int |
marshalledLength(TreeInt a_tree) |
int |
ownLength() |
java.lang.Object |
read(ByteArrayBuffer buffer) |
static TreeInt |
removeLike(TreeInt tree,
int value) |
java.lang.Object |
shallowClone() |
protected Tree |
shallowCloneInternal(Tree tree) |
static QCandidate |
toQCandidate(TreeInt tree,
QCandidates candidates) |
java.lang.String |
toString() |
void |
write(ByteArrayBuffer buffer) |
static void |
write(ByteArrayBuffer buffer,
TreeInt tree) |
static void |
write(ByteArrayBuffer buffer,
TreeInt tree,
int size) |
accept, add, add, addedOrExisting, balance, balanceCheckNulls, calculateSize, deepClone, deepClone, filter, find, find, findGreaterOrEqual, findSmaller, first, last, last, nodes, onAttemptToAddDuplicate, ownSize, remove, removeChildren, removeFirst, removeLike, removeLike, removeNode, root, rotateLeft, rotateRight, setSizeOwn, setSizeOwnPlus, setSizeOwnPlus, setSizeOwnPreceding, setSizeOwnPrecedingSubsequent, setSizeOwnSubsequent, size, size, traverse, traverse, traverse, traverseFromLeaves, wasAddedToTreepublic static Tree addAll(Tree tree, IntIterator4 iter)
public int compare(Tree a_to)
Treepublic boolean duplicates()
duplicates in class Tree<java.lang.Integer>public final TreeInt find(int a_key)
public java.lang.Object read(ByteArrayBuffer buffer)
public void write(ByteArrayBuffer buffer)
write in interface ReadWriteablepublic static void write(ByteArrayBuffer buffer, TreeInt tree)
public static void write(ByteArrayBuffer buffer, TreeInt tree, int size)
public int ownLength()
public static QCandidate toQCandidate(TreeInt tree, QCandidates candidates)
public java.lang.String toString()
toString in class java.lang.Objectprotected Tree shallowCloneInternal(Tree tree)
shallowCloneInternal in class Tree<java.lang.Integer>public java.lang.Object shallowClone()
shallowClone in interface ShallowCloneshallowClone in class Tree<java.lang.Integer>public static int marshalledLength(TreeInt a_tree)
public final int marshalledLength()
marshalledLength in interface Readablepublic final int marshalledLength(int size)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Object