public class Discretization
extends java.lang.Object
DiscretizationInterval objects.Attribute| Constructor | Description |
|---|---|
Discretization() |
The sole constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(DiscretizationInterval interval) |
Adds an interval to this collection.
|
void |
clear() |
Removes all the intervals from the collection.
|
boolean |
empty() |
Checks if this collection is empty.
|
DiscretizationInterval |
get(int index) |
Returns an interval with given index.
|
int |
size() |
Returns number of intervals in this collection.
|
public void add(DiscretizationInterval interval)
interval - the interval to be addedjava.lang.NullPointerException - if interval is nullpublic void clear()
public DiscretizationInterval get(int index)
index - index of an interval to getpublic int size()
public boolean empty()
true if this collection do not contain any interval,
false otherwise