public class SimpleIntervalIndexedCollection<E> extends java.lang.Object implements IntervalIndexedCollection<E>
| Constructor and Description |
|---|
SimpleIntervalIndexedCollection()
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(E element,
int left,
int right)
Add an element to this collection.
|
java.util.Iterator<E> |
get(int i)
Get all of the elements at point i (i.e., all of the
elements with intervals that include i).
|
public SimpleIntervalIndexedCollection()
public void add(E element, int left, int right)
add in interface IntervalIndexedCollection<E>element - The element to addleft - The left-most point in the closed intervalright - The right-most point in the closed intervalpublic java.util.Iterator<E> get(int i)
get in interface IntervalIndexedCollection<E>i - The point of interest