Package com.db4o.internal
Class TreeIntObject<T>
- java.lang.Object
-
- com.db4o.foundation.Tree<java.lang.Integer>
-
- com.db4o.internal.TreeInt
-
- com.db4o.internal.TreeIntObject<T>
-
- All Implemented Interfaces:
DeepClone
,ShallowClone
,Visitable<java.lang.Integer>
,Readable
,ReadWriteable
public class TreeIntObject<T> extends TreeInt
-
-
Field Summary
Fields Modifier and Type Field Description T
_object
-
Fields inherited from class com.db4o.foundation.Tree
_preceding, _size, _subsequent
-
-
Constructor Summary
Constructors Constructor Description TreeIntObject(int a_key)
TreeIntObject(int a_key, T a_object)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> TreeIntObject<T>
add(TreeIntObject<T> tree, int key, T value)
java.lang.Object
getObject()
int
ownLength()
java.lang.Object
read(ByteArrayBuffer a_bytes)
void
setObject(T obj)
java.lang.Object
shallowClone()
protected Tree
shallowCloneInternal(Tree tree)
void
write(ByteArrayBuffer a_writer)
-
Methods inherited from class com.db4o.internal.TreeInt
add, addAll, compare, duplicates, equals, find, find, key, marshalledLength, marshalledLength, marshalledLength, removeLike, toString, write, write
-
Methods inherited from class com.db4o.foundation.Tree
accept, add, add, add, addedOrExisting, balance, balanceCheckNulls, calculateSize, deepClone, deepClone, depth, 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, wasAddedToTree
-
-
-
-
Field Detail
-
_object
public T _object
-
-
Constructor Detail
-
TreeIntObject
public TreeIntObject(int a_key)
-
TreeIntObject
public TreeIntObject(int a_key, T a_object)
-
-
Method Detail
-
shallowClone
public java.lang.Object shallowClone()
- Specified by:
shallowClone
in interfaceShallowClone
- Overrides:
shallowClone
in classTreeInt
-
shallowCloneInternal
protected Tree shallowCloneInternal(Tree tree)
- Overrides:
shallowCloneInternal
in classTreeInt
-
getObject
public java.lang.Object getObject()
-
setObject
public void setObject(T obj)
-
read
public java.lang.Object read(ByteArrayBuffer a_bytes)
-
write
public void write(ByteArrayBuffer a_writer)
- Specified by:
write
in interfaceReadWriteable
- Overrides:
write
in classTreeInt
-
add
public static <T> TreeIntObject<T> add(TreeIntObject<T> tree, int key, T value)
-
-