collectionframework
Interface IntervalIndexedCollection<E>

All Known Implementing Classes:
SimpleIntervalIndexedCollection

public interface IntervalIndexedCollection<E>

A collection of objects that is indexed by an interval That is, instead of a each element in the collection being associated with a single index i, each element is associated with a closed interval [a, b]

See Also:
"The Design and Implementation of Multimedia Software © 2011"

Method Summary
 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)
 

Method Detail

add

void add(E element,
         int left,
         int right)
Add an element to this collection

Parameters:
element - The element to add
left - The left-most point in the closed interval
right - The right-most point in the closed interval

get

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)

Parameters:
i - The point of interest
Returns:
The elements at that point


Design and Implementation of Multimedia Software, Jones and Bartlett Publishers