Package org.drools.core.util
Class TupleRBTree<K extends Comparable<? super K>>
java.lang.Object
org.drools.core.util.TupleRBTree<K>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic classTupleRBTree.Node<K extends Comparable<? super K>>static classTupleRBTree.RangeFastIterator<K extends Comparable<? super K>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfindNearestNode(K key, boolean allowEqual, TupleRBTree.Boundary boundary) first()booleanisEmpty()iterator()last()voidprint()voidrangeLowerBounded(K upperBound, boolean testUpperEqual) voidrangeUperBounded(K upperBound, boolean testUpperEqual) toString()void
-
Field Details
-
VERIFY_RBTREE
public static final boolean VERIFY_RBTREE- See Also:
-
root
-
nullNode
-
EMPTY
-
-
Constructor Details
-
TupleRBTree
public TupleRBTree()
-
-
Method Details
-
verifyProperties
public void verifyProperties() -
lookup
-
isEmpty
public boolean isEmpty() -
first
-
last
-
iterator
-
toString
-
range
public Iterator<TupleRBTree.Node<K>> range(K lowerBound, boolean testLowerEqual, K upperBound, boolean testUpperEqual) -
rangeUperBounded
-
rangeLowerBounded
-
findNearestNode
public TupleRBTree.Node<K> findNearestNode(K key, boolean allowEqual, TupleRBTree.Boundary boundary) -
insert
-
delete
-
print
public void print()
-