protected static class DynamicIntervalTree.Node<U extends Comparable<U>,T extends Interval<U>> extends RedBlackTree.Node<T>
RedBlackTree.Node.NodeColor| Constructor and Description |
|---|
Node(T interval)
Construct a new node associated with the specified interval.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
computeMaximumHighEndpoint()
Compute the maximum high endpoint among intervals stored within the
subtree rooted at this node and correct values up the tree.
|
DynamicIntervalTree.Node<U,T> |
getLeft()
Get the left child.
|
U |
getMaximumHighEndpoint() |
DynamicIntervalTree.Node<U,T> |
getParent()
Get the parent.
|
DynamicIntervalTree.Node<U,T> |
getRight()
Get the right child.
|
boolean |
isClosedOnEndpoint() |
public Node(T interval)
interval - the interval with which this node is associated.protected void computeMaximumHighEndpoint()
public DynamicIntervalTree.Node<U,T> getLeft()
getLeft in class RedBlackTree.Node<T extends Interval<U>>public U getMaximumHighEndpoint()
public DynamicIntervalTree.Node<U,T> getParent()
getParent in class RedBlackTree.Node<T extends Interval<U>>public DynamicIntervalTree.Node<U,T> getRight()
getRight in class RedBlackTree.Node<T extends Interval<U>>public boolean isClosedOnEndpoint()
Copyright © 1994–2024 Peter Murray-Rust. All rights reserved.