DiscreteInterval insteadpublic class GenericIntervalList extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
GenericIntervalList.Interval
Deprecated.
An Interval is an immutable representation of a single contigous range of numbers from start
to end.
|
| Constructor and Description |
|---|
GenericIntervalList(GenericIntervalList il)
Deprecated.
|
GenericIntervalList(Object start,
Object end,
ValueSpace comp)
Deprecated.
|
GenericIntervalList(ValueSpace comp)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addInterval(Object start,
boolean incStart,
Object end,
boolean incEnd)
Deprecated.
|
void |
addInterval(Object start,
Object end)
Deprecated.
|
void |
addIntervalList(GenericIntervalList il)
Deprecated.
|
boolean |
contains(Object value)
Deprecated.
|
int |
count()
Deprecated.
|
boolean |
equals(Object o)
Deprecated.
|
Object |
get(int n)
Deprecated.
Return the
nth object form this interval list. |
int |
hashCode()
Deprecated.
|
boolean |
isEmpty()
Deprecated.
|
Iterator |
iterator()
Deprecated.
|
Object |
max()
Deprecated.
|
Object |
min()
Deprecated.
|
void |
removeInterval(Object start,
boolean incStart,
Object end,
boolean incEnd)
Deprecated.
|
void |
removeIntervalList(GenericIntervalList il)
Deprecated.
|
void |
restrictToInterval(GenericIntervalList.Interval i)
Deprecated.
|
void |
restrictToInterval(Object start,
boolean incStart,
Object end,
boolean incEnd)
Deprecated.
|
String |
toString()
Deprecated.
|
public GenericIntervalList(Object start, Object end, ValueSpace comp)
public GenericIntervalList(ValueSpace comp)
public GenericIntervalList(GenericIntervalList il)
public boolean isEmpty()
public Object min()
public Object max()
public int count()
public void addInterval(Object start, boolean incStart, Object end, boolean incEnd)
public void removeInterval(Object start, boolean incStart, Object end, boolean incEnd)
public void addIntervalList(GenericIntervalList il)
public void removeIntervalList(GenericIntervalList il)
public void restrictToInterval(Object start, boolean incStart, Object end, boolean incEnd)
public void restrictToInterval(GenericIntervalList.Interval i)
public Iterator iterator()
public boolean contains(Object value)
public Object get(int n)
nth object form this interval list. If the interval list is finite
the numbers will be returned in increasing order. If the interval is unbounded in one direction
(either the first or the last interval is infinite) then first all the values will in finite
intervals will be returned and then the values in the infinite interval will be returned.Copyright © 2013. All Rights Reserved.