| Constructor and Description |
|---|
SortedRangeSet()
Creates an instance of
SortedRangeSet with a default
StartAndSizeComparator which compares only the start and end of the range. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(R range) |
void |
addAll(Collection<R> ranges) |
void |
addAll(SortedRangeSet<C,R> ranges) |
R |
ceiling(R range) |
void |
clear() |
boolean |
contains(R range) |
boolean |
equals(Object o) |
R |
floor(R range) |
R |
getSingleRange() |
int |
hashCode() |
SortedRangeSet<C,R> |
intersection(SortedRangeSet<C,R> other) |
boolean |
isEmpty() |
Iterator<R> |
iterator() |
Set<R> |
modifiableSet() |
boolean |
remove(R range) |
void |
removeAll(Collection<R> ranges) |
void |
removeAll(SortedRangeSet<C,R> ranges) |
int |
size() |
String |
toString() |
Set<R> |
unmodifiableSet() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic SortedRangeSet()
SortedRangeSet with a default
StartAndSizeComparator which compares only the start and end of the range.
Note, this comparator imposes orderings that might be inconsistent with the equals
method of the compared ranges.public void addAll(SortedRangeSet<C,R> ranges)
public void addAll(Collection<R> ranges)
public void add(R range)
public void removeAll(SortedRangeSet<C,R> ranges)
public void removeAll(Collection<R> ranges)
public boolean remove(R range)
public SortedRangeSet<C,R> intersection(SortedRangeSet<C,R> other)
public boolean contains(R range)
public void clear()
public boolean isEmpty()
public int size()
public Set<R> unmodifiableSet()
SortedRangeSet as a Setpublic Set<R> modifiableSet()
SortedRangeSet as a Setpublic R getSingleRange()
Copyright © 2016. All rights reserved.