org.drools.core.util
Class RBTree<K extends Comparable<? super K>,V>
java.lang.Object
org.drools.core.util.RBTree<K,V>
- All Implemented Interfaces:
- Serializable
public class RBTree<K extends Comparable<? super K>,V>
- extends Object
- implements Serializable
- See Also:
http://en.literateprograms.org/Red-black_tree_%28Java%29,
Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VERIFY_RBTREE
public static final boolean VERIFY_RBTREE
- See Also:
- Constant Field Values
root
public RBTree.Node<K extends Comparable<? super K>,V> root
RBTree
public RBTree()
verifyProperties
public void verifyProperties()
isEmpty
public boolean isEmpty()
first
public RBTree.Node<K,V> first()
last
public RBTree.Node<K,V> last()
fastIterator
public FastIterator fastIterator()
range
public FastIterator range(K lowerBound,
boolean testLowerEqual,
K upperBound,
boolean testUpperEqual)
findNearestNode
public RBTree.Node<K,V> findNearestNode(K key,
boolean allowEqual,
RBTree.Boundary boundary)
lookup
public V lookup(K key)
insert
public void insert(K key,
V value)
delete
public void delete(K key)
print
public void print()
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.