|
|||||||||
Home >> All >> Freenet >> [ support overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
Freenet.support
Class LimitedBinaryTree

java.lang.ObjectFreenet.support.BinaryTree
Freenet.support.LimitedBinaryTree
- public class LimitedBinaryTree
- extends BinaryTree
This class represents a binary tree of limited size which uses integers as keys. If the tree is full and a new value is added, then the oldest value is removed.
Field Summary | |
protected CyclicArray |
ca
|
Fields inherited from class Freenet.support.BinaryTree |
size, tree |
Constructor Summary | |
LimitedBinaryTree(int size)
|
Method Summary | |
void |
delete(long key)
|
void |
put(long key,
java.lang.Object data)
|
Methods inherited from class Freenet.support.BinaryTree |
get, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
ca
protected CyclicArray ca
Constructor Detail |
LimitedBinaryTree
public LimitedBinaryTree(int size)
Method Detail |
put
public void put(long key, java.lang.Object data)
- Overrides:
put
in classBinaryTree
delete
public void delete(long key)
- Overrides:
delete
in classBinaryTree
|
|||||||||
Home >> All >> Freenet >> [ support overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |