|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--java.util.AbstractList | +--java.util.Vector | +--concast.merged.TimerList
Internal class, list of timers.
record : (tag, absolute time)
Items are sorted by time in ascending order
Inner Class Summary | |
class |
TimerList.TimeTag
List element |
Fields inherited from class java.util.Vector |
capacityIncrement, elementCount, elementData |
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary | |
TimerList()
|
Method Summary | |
boolean |
cancelTimer(long tag)
Remove record for given tag |
TimerList.TimeTag |
getFirstTimeTag()
Return first record |
long |
getTimer(long tag)
Returns absolute value of timer for given tag |
java.lang.String |
print()
|
void |
removeFirst()
|
boolean |
setTimer(long time,
long tag)
Insert item to the list, sorted by time, it doesn't check is tag is already in the list Merged is written such a way, that it's impossible |
Methods inherited from class java.util.Vector |
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
Methods inherited from class java.util.AbstractList |
iterator, listIterator, listIterator |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
iterator, listIterator, listIterator |
Constructor Detail |
public TimerList()
Method Detail |
public boolean setTimer(long time, long tag)
public long getTimer(long tag)
public boolean cancelTimer(long tag)
public TimerList.TimeTag getFirstTimeTag()
public void removeFirst()
public java.lang.String print()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |