|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openuat.util.IntervalList
public class IntervalList
This class represents a list of time intervals (in milliseconds).
| Constructor Summary | |
|---|---|
IntervalList()
Creates an empty IntervalList. |
|
| Method Summary | |
|---|---|
void |
add(int interval)
Appends a new interval to the end of the list. |
void |
addFirst(int interval)
Prepends a new interval to the beginning of the list. |
boolean |
equals(java.lang.Object obj)
|
int |
getTotalIntervalLength()
Returns the total length (sum) of all intervals in this list. |
int |
hashCode()
|
int |
item(int i)
Returns the interval at a given index. |
void |
remove(int i)
Removes an interval from this list at a given index. |
int |
size()
Returns the number intervals in this list. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IntervalList()
IntervalList.
| Method Detail |
|---|
public void add(int interval)
interval - A new interval which is appended to the list.public void addFirst(int interval)
interval - A new interval which is prepended to the list.public int item(int i)
i - index into the list
ipublic void remove(int i)
i - index into the listpublic int size()
public int getTotalIntervalLength()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||