|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.compoze.trigger.TreeSetTriggerList
This class is a list of sorted triggers
Constructor Summary | |
TreeSetTriggerList()
Constructor. |
Method Summary | |
long |
add(Trigger trigger)
Adds the trigger to the trigger list. |
Trigger |
find(long lTriggerID)
Finds a trigger by the specified trigger ID. |
Trigger |
getEarliestTrigger()
Gets the earliest trigger in the list. |
boolean |
isEmpty()
Checks if the trigger list is empty. |
boolean |
remove(long lTriggerID)
Removes a trigger from the trigger list by the specified ID. |
boolean |
remove(Trigger trigger)
Removes the trigger from the trigger list. |
int |
size()
Gets the size of the trigger list. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TreeSetTriggerList()
Method Detail |
public long add(Trigger trigger)
ITriggerList
add
in interface ITriggerList
com.compoze.trigger.ITriggerList
trigger
- the trigger to addpublic boolean remove(Trigger trigger)
ITriggerList
remove
in interface ITriggerList
com.compoze.trigger.ITriggerList
trigger
- the trigger to removetrue
if the trigger was found and removed; false
otherwise if not foundpublic boolean remove(long lTriggerID)
ITriggerList
remove
in interface ITriggerList
com.compoze.trigger.ITriggerList
lTriggerID
- id of triggertrue
if the trigger was found and removed; false
otherwise if not foundpublic Trigger find(long lTriggerID)
ITriggerList
find
in interface ITriggerList
com.compoze.trigger.ITriggerList
lTriggerID
- the trigger IDnull
if not foundpublic Trigger getEarliestTrigger()
ITriggerList
getEarliestTrigger
in interface ITriggerList
com.compoze.trigger.ITriggerList
null
if there are no triggers in the listpublic boolean isEmpty()
ITriggerList
isEmpty
in interface ITriggerList
com.compoze.trigger.ITriggerList
true
if the trigger list is empty; false
otherwisepublic int size()
ITriggerList
size
in interface ITriggerList
com.compoze.trigger.ITriggerList
|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |