RangeSet.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(Range<C> range)
Implements com. RangeSet (optional operation).
|
| public void | addAll(RangeSet<C> other)
Implements com. |
| public void | clear()
Implements com. RangeSet (optional operation).
|
| public boolean | contains(C value)
Implements com. value.
|
| public abstract boolean | encloses(Range<C> otherRange)
Redeclares com. true if there exists a member range in this range set which encloses the specified range.
|
| public boolean | enclosesAll(RangeSet<C> other)
Implements com. true if for each member range in other there exists a member range in
this range set which encloses it.
|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Implements com. true if obj is another RangeSet that contains the same ranges
according to Range#equals(Object).
|
| public final int | hashCode()
Overrides java. Implements com. asRanges().hashCode().
|
| public boolean | intersects(Range<C> otherRange)
Implements com. true if there exists a non-empty range enclosed by both a member range in this
range set and the specified range.
|
| public boolean | isEmpty()
Implements com. true if this range set contains no ranges.
|
| public abstract Range | rangeContaining(C value)
Redeclares com. value, or null if this range set does not contain value.
|
| public void | remove(Range<C> range)
Implements com. RangeSet (optional operation).
|
| public void | removeAll(RangeSet<C> other)
Implements com. |
| public final String | toString()
Overrides java. Implements com. |
| AbstractRangeSet | back to summary |
|---|---|
| pack-priv AbstractRangeSet() | |
| add | back to summary |
|---|---|
| public void add(Range<C> range) Implements com. Doc from com. Adds the specified range to this Note that
| |
| addAll | back to summary |
|---|---|
| public void addAll(RangeSet<C> other) Implements com. Doc from com. Adds all of the ranges from the specified range set to this range set (optional operation).
After this operation, this range set is the minimal range set that encloses both the original range set and This is equivalent to calling
| |
| clear | back to summary |
|---|---|
| public void clear() Implements com. Doc from com. Removes all ranges from this This is equivalent to
| |
| contains | back to summary |
|---|---|
| public boolean contains(C value) Implements com. Doc from com. Determines whether any of this range set's member ranges contains
| |
| encloses | back to summary |
|---|---|
| public abstract boolean encloses(Range<C> otherRange) Redeclares com. Doc from com. Returns
| |
| enclosesAll | back to summary |
|---|---|
| public boolean enclosesAll(RangeSet<C> other) Implements com. Doc from com. Returns This is equivalent to checking if this range set
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Implements com. Doc from com. Returns
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Overrides java. Implements com. Doc from com. Returns
| |
| intersects | back to summary |
|---|---|
| public boolean intersects(Range<C> otherRange) Implements com. Doc from com. Returns
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements com. Doc from com. Returns
| |
| rangeContaining | back to summary |
|---|---|
| public abstract Range Redeclares com. Doc from com. Returns the unique range from this range set that contains
| |
| remove | back to summary |
|---|---|
| public void remove(Range<C> range) Implements com. Doc from com. Removes the specified range from this If
| |
| removeAll | back to summary |
|---|---|
| public void removeAll(RangeSet<C> other) Implements com. Doc from com. Removes all of the ranges from the specified range set from this range set (optional
operation). After this operation, if This is equivalent to calling
| |
| toString | back to summary |
|---|---|
| public final String toString() Overrides java. Implements com. Doc from com. Returns a readable string representation of this range set. For example, if this
| |