Compoze Software, Inc.

com.compoze.trigger
Class TreeSetTriggerList


java.lang.Object

  |

  +--com.compoze.trigger.TreeSetTriggerList

All Implemented Interfaces:
ITriggerList, java.io.Serializable

public class TreeSetTriggerList
extends java.lang.Object
implements ITriggerList, java.io.Serializable

This class is a list of sorted triggers

See Also:
Serialized Form

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

TreeSetTriggerList


public TreeSetTriggerList()
Constructor.
Method Detail

add


public long add(Trigger trigger)
Description copied from interface: ITriggerList
Adds the trigger to the trigger list.
Specified by:
add in interface ITriggerList
Following copied from interface: com.compoze.trigger.ITriggerList
Parameters:
trigger - the trigger to add
Returns:
the unique identifier for the trigger (the trigger ID), which should be the same as the passed in ID

remove


public boolean remove(Trigger trigger)
Description copied from interface: ITriggerList
Removes the trigger from the trigger list.
Specified by:
remove in interface ITriggerList
Following copied from interface: com.compoze.trigger.ITriggerList
Parameters:
trigger - the trigger to remove
Returns:
true if the trigger was found and removed; false otherwise if not found

remove


public boolean remove(long lTriggerID)
Description copied from interface: ITriggerList
Removes a trigger from the trigger list by the specified ID.
Specified by:
remove in interface ITriggerList
Following copied from interface: com.compoze.trigger.ITriggerList
Parameters:
lTriggerID - id of trigger
Returns:
true if the trigger was found and removed; false otherwise if not found

find


public Trigger find(long lTriggerID)
Description copied from interface: ITriggerList
Finds a trigger by the specified trigger ID.
Specified by:
find in interface ITriggerList
Following copied from interface: com.compoze.trigger.ITriggerList
Parameters:
lTriggerID - the trigger ID
Returns:
the trigger or null if not found

getEarliestTrigger


public Trigger getEarliestTrigger()
Description copied from interface: ITriggerList
Gets the earliest trigger in the list.
Specified by:
getEarliestTrigger in interface ITriggerList
Following copied from interface: com.compoze.trigger.ITriggerList
Returns:
the earliest trigger in the list or null if there are no triggers in the list

isEmpty


public boolean isEmpty()
Description copied from interface: ITriggerList
Checks if the trigger list is empty.
Specified by:
isEmpty in interface ITriggerList
Following copied from interface: com.compoze.trigger.ITriggerList
Returns:
true if the trigger list is empty; false otherwise

size


public int size()
Description copied from interface: ITriggerList
Gets the size of the trigger list. This is the number of triggers in the list.
Specified by:
size in interface ITriggerList
Following copied from interface: com.compoze.trigger.ITriggerList
Returns:
the number of triggers in the list or -1 if not available

Compoze Software, Inc.

Copyright ©1999-2001 Compoze Software, Inc. All rights reserved.