APIdia Launch Partner
Top Fields Constructors Methods
sun.jvm.hotspot.utilities

public Class IntervalNode

extends RBNode
Class Inheritance
Imports
java.util.Comparator

Field Summary

Modifier and TypeField and Description
private Comparator<Object>
private Interval
private Object
private Object

Constructor Summary

AccessConstructor and Description
public
IntervalNode(Interval interval, Comparator<Object> endpointComparator, Object data)

Method Summary

Modifier and TypeMethod and Description
public Object
public Object
public void
copyFrom(RBNode arg)

Overrides sun.jvm.hotspot.utilities.RBNode.copyFrom.

Must copy all user-defined fields from the given node.

public Interval
public Object
public Object
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public boolean
update()

Overrides sun.jvm.hotspot.utilities.RBNode.update.

This is called by the base RBTree's insertion and deletion methods when necessary.

Inherited from sun.jvm.hotspot.utilities.RBNode:
getColorgetDatagetLeftgetParentgetRightsetColorsetLeftsetParentsetRight

Field Detail

endpointComparatorback to summary
private Comparator<Object> endpointComparator
intervalback to summary
private Interval interval
maxEndpointback to summary
private Object maxEndpoint
minEndpointback to summary
private Object minEndpoint

Constructor Detail

IntervalNodeback to summary
public IntervalNode(Interval interval, Comparator<Object> endpointComparator, Object data)

Method Detail

computeMaxEndpointback to summary
public Object computeMaxEndpoint()
computeMinEndpointback to summary
public Object computeMinEndpoint()
copyFromback to summary
public void copyFrom(RBNode arg)

Overrides sun.jvm.hotspot.utilities.RBNode.copyFrom.

Doc from sun.jvm.hotspot.utilities.RBNode.copyFrom.

Must copy all user-defined fields from the given node. For example, the base implementation copies the "data" field. However, it does not (and must not) copy the link fields (parent, left child, right child). It also does not need to copy any computed information for the node, as the node will be updated when necessary. Subclasses must be careful to call the superclass implementation.

getIntervalback to summary
public Interval getInterval()
getMaxEndpointback to summary
public Object getMaxEndpoint()
getMinEndpointback to summary
public Object getMinEndpoint()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

updateback to summary
public boolean update()

Overrides sun.jvm.hotspot.utilities.RBNode.update.

Doc from sun.jvm.hotspot.utilities.RBNode.update.

This is called by the base RBTree's insertion and deletion methods when necessary. Subclasses can use this to update any computed information based on the information in their left or right children. For multi-node updates it is guaranteed that this method will be called in the correct order. This should return true if an update actually occurred, false if not.