public class RBNode
extends java.lang.Object
Constructor and Description |
---|
RBNode(java.lang.Object data)
Newly-created nodes are colored red
|
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(RBNode arg)
Must copy all user-defined fields from the given node.
|
RBColor |
getColor() |
java.lang.Object |
getData() |
RBNode |
getLeft()
Access to left child
|
RBNode |
getParent() |
RBNode |
getRight()
Access to right child
|
void |
setColor(RBColor color) |
void |
setLeft(RBNode left) |
void |
setParent(RBNode parent) |
void |
setRight(RBNode right) |
boolean |
update()
This is called by the base RBTree's insertion and deletion
methods when necessary.
|
public java.lang.Object getData()
public void copyFrom(RBNode arg)
public boolean update()
public RBColor getColor()
public void setColor(RBColor color)
public RBNode getParent()
public void setParent(RBNode parent)
public RBNode getLeft()
public void setLeft(RBNode left)
public RBNode getRight()
public void setRight(RBNode right)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.