Modifier and Type | Field and Description |
---|---|
private EnumMap<Invoke.WHEN,List<Invoke>> |
mInvokeMap
An enum map that associates the various notification events with the list
of actions that need to be taken.
|
Constructor and Description |
---|
Notifications()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Invoke notification)
Adds a Invoke object correpsonding to a notification.
|
private void |
addAll(Invoke.WHEN when,
Collection<Invoke> invokes)
Convenience method at add all the notifications corresponding
to a particular event
|
void |
addAll(Notifications notifications)
Adds all the notifications passed to the underlying container.
|
Object |
clone()
Returns the clone of the object.
|
Collection<Invoke> |
getNotifications(Invoke.WHEN when)
Returns a collection of all the notifications that need to be
done for a particular condition
|
boolean |
isEmpty()
Returns a boolean indicating whether the notifications object is empty or not.
|
void |
reset()
Resets the internal invoke map.
|
String |
toString()
Returns a String description of the object
|
setToString, vectorToString
private EnumMap<Invoke.WHEN,List<Invoke>> mInvokeMap
public void reset()
public void add(Invoke notification)
notification
- the notification objectpublic void addAll(Notifications notifications)
notifications
- the notification objectpublic Collection<Invoke> getNotifications(Invoke.WHEN when)
when
- the conditionpublic boolean isEmpty()
public Object clone()
public String toString()
private void addAll(Invoke.WHEN when, Collection<Invoke> invokes)
when
- when does the event happennotifications
- the list of notificiations