public abstract class ActivityRepositoryBase<A extends Activity> extends Object implements ActivityRepository<A>
Constructor and Description |
---|
ActivityRepositoryBase() |
Modifier and Type | Method and Description |
---|---|
void |
addEventHandler(EventHandler<RepositoryEvent> l)
Adds an event handler for receiving repository events.
|
EventDispatchChain |
buildEventDispatchChain(EventDispatchChain tail) |
protected void |
fireEvent(RepositoryEvent evt) |
Instant |
getEarliestTimeUsed()
Returns the earliest time used by the activities stored in this
repository / on this row.
|
Instant |
getLatestTimeUsed()
Returns the latest time used by the activities stored in this repository
/ on this row.
|
void |
removeEventHandler(EventHandler<RepositoryEvent> l)
Removes the given event handler from the repository.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getActivities
public void addEventHandler(EventHandler<RepositoryEvent> l)
ActivityRepository
addEventHandler
in interface ActivityRepository<A extends Activity>
l
- the event handler that will be added to the repositorypublic void removeEventHandler(EventHandler<RepositoryEvent> l)
ActivityRepository
removeEventHandler
in interface ActivityRepository<A extends Activity>
l
- the event handler that will be removed from the repositorypublic Instant getEarliestTimeUsed()
ActivityRepository
getEarliestTimeUsed
in interface ActivityRepository<A extends Activity>
public Instant getLatestTimeUsed()
ActivityRepository
getLatestTimeUsed
in interface ActivityRepository<A extends Activity>
public EventDispatchChain buildEventDispatchChain(EventDispatchChain tail)
buildEventDispatchChain
in interface EventTarget
protected void fireEvent(RepositoryEvent evt)
Copyright © 2014 Dirk Lemmermann Software & Consulting. All rights reserved.