public class RangeSet extends Object implements Iterable<RangeSet.Range>
| Modifier and Type | Class and Description |
|---|---|
class |
RangeSet.Range |
| Constructor and Description |
|---|
RangeSet(int rangesLowerBound,
int rangesUpperBound) |
RangeSet(RangeSet rs) |
| Modifier and Type | Method and Description |
|---|---|
void |
complement() |
boolean |
contains(int num) |
RangeSet.Range |
createRange(int num) |
RangeSet.Range |
createRange(int low,
int high) |
Set<Integer> |
discretize() |
boolean |
equals(Object o) |
int |
hashCode() |
void |
intersection(RangeSet rs) |
boolean |
isEmpty() |
Iterator<RangeSet.Range> |
iterator() |
static void |
main(String[] args) |
int |
sampleRangeSet() |
String |
toString() |
void |
union(List<RangeSet.Range> rangesToAdd) |
void |
union(RangeSet.Range r) |
void |
union(RangeSet rs) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic RangeSet(int rangesLowerBound,
int rangesUpperBound)
public RangeSet(RangeSet rs)
public RangeSet.Range createRange(int num)
public RangeSet.Range createRange(int low, int high)
public void union(RangeSet rs)
public void union(RangeSet.Range r)
public void union(List<RangeSet.Range> rangesToAdd)
public void intersection(RangeSet rs)
public void complement()
public int sampleRangeSet()
public boolean isEmpty()
public boolean contains(int num)
public static void main(String[] args)
public Iterator<RangeSet.Range> iterator()
iterator in interface Iterable<RangeSet.Range>Copyright © 2021. All rights reserved.