Package overit.geocall.util
Class EventHistory
java.lang.Object
overit.geocall.util.EventHistory
Utility class to manage an history of events
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
_size
protected int _size -
_history
-
-
Constructor Details
-
EventHistory
public EventHistory()
-
-
Method Details
-
setSize
public void setSize(int i) Sets the size- Parameters:
i- The size to set
-
getSize
public int getSize()Returns the size- Returns:
- The size
-
register
Add an event- Parameters:
e- The event to add
-
register2
-
remove
public void remove(long id) Removes an specified event- Parameters:
id- The id of the event
-
getEvent
Returns the requested event- Parameters:
id- The id of the event- Returns:
- The requested event
-
clear
public void clear()Clear the history -
getEvents
Returns a set of events- Returns:
- A set of events
-