| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private long | |
| private long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(Comparable<T>
the object to be compared. other)Implements java. |
| private int | compareTo(Region
the object to be compared. r)Implements java. |
| private int | compareTo(Long
the object to be compared. l)Implements java. |
| public long | |
| public long | |
| public Region | getPayload()
Implements net. |
| protected boolean | |
| protected void | |
| protected Region | |
| public void | setLeft(AATreeSet.
Overrides net. Implements net. |
| public void | setRight(AATreeSet.
Overrides net. Implements net. |
| public long | |
| public long | |
| public void | swapPayload(AATreeSet.
Implements net. |
| public String | |
| private void |
| contiguous | back to summary |
|---|---|
| private long contiguous | |
| end | back to summary |
|---|---|
| private long end | |
| start | back to summary |
|---|---|
| private long start | |
| Region | back to summary |
|---|---|
| public Region(long value) Creates a region containing just the single given value | |
| Region | back to summary |
|---|---|
| public Region(long start, long end) Creates a region containing the given range of value (inclusive). | |
| Region | back to summary |
|---|---|
| public Region(Region r) Create a shallow copy of a region. The new Region has NULL left and right children. | |
| compareTo | back to summary |
|---|---|
| public int compareTo(Comparable<T> other) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| compareTo | back to summary |
|---|---|
| private int compareTo(Region r) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| compareTo | back to summary |
|---|---|
| private int compareTo(Long l) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| contiguous | back to summary |
|---|---|
| public long contiguous() Return the size of the largest region linked from this node. | |
| end | back to summary |
|---|---|
| public long end() Returns the end of this range (inclusive). | |
| getPayload | back to summary |
|---|---|
| public Region getPayload() Implements net. Doc from net. Return the 'value' object held within this node. | |
| isNull | back to summary |
|---|---|
| protected boolean isNull() Return true if this region is null, i.e. represents no valid range. | |
| merge | back to summary |
|---|---|
| protected void merge(Region r) throws IllegalArgumentException Merge the supplied region into this region (if they are adjoining).
| |
| remove | back to summary |
|---|---|
| protected Region remove(Region r) throws IllegalArgumentException Remove the supplied region from this region.
| |
| setLeft | back to summary |
|---|---|
| public void setLeft(AATreeSet. Overrides net. Implements net. Doc from net. Set this node's left child.
| |
| setRight | back to summary |
|---|---|
| public void setRight(AATreeSet. Overrides net. Implements net. Doc from net. Set this node's right child.
| |
| size | back to summary |
|---|---|
| public long size() Returns the size of this range (the number of values within its bounds). | |
| start | back to summary |
|---|---|
| public long start() Returns the start of this range (inclusive). | |
| swapPayload | back to summary |
|---|---|
| public void swapPayload(AATreeSet. Implements net. Doc from net. Swap the payload objects between this node and the supplied node. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| updateContiguous | back to summary |
|---|---|
| private void updateContiguous() | |