public class IntervalTreeActivityRepository<A extends Activity> extends MutableActivityRepositoryBase<A>
Constructor and Description |
---|
IntervalTreeActivityRepository() |
Modifier and Type | Method and Description |
---|---|
void |
addActivity(ActivityRef<A> activityRef) |
void |
clearActivities() |
void |
clearActivities(Layer layer) |
Iterator<A> |
getActivities(Layer layer,
Instant startTime,
Instant endTime,
TemporalUnit temporalUnit,
ZoneId zoneId)
Returns an iterator for iterating over all activities found for the given
layer and time interval.
|
List<A> |
getAllActivities() |
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 |
removeActivity(ActivityRef<A> activityRef) |
addEventHandler, buildEventDispatchChain, fireEvent, removeEventHandler
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addEventHandler, removeEventHandler
buildEventDispatchChain
public final void addActivity(ActivityRef<A> activityRef)
public final void removeActivity(ActivityRef<A> activityRef)
public final void clearActivities()
public final void clearActivities(Layer layer)
public final Instant getEarliestTimeUsed()
ActivityRepository
getEarliestTimeUsed
in interface ActivityRepository<A extends Activity>
getEarliestTimeUsed
in class ActivityRepositoryBase<A extends Activity>
public final Instant getLatestTimeUsed()
ActivityRepository
getLatestTimeUsed
in interface ActivityRepository<A extends Activity>
getLatestTimeUsed
in class ActivityRepositoryBase<A extends Activity>
public final Iterator<A> getActivities(Layer layer, Instant startTime, Instant endTime, TemporalUnit temporalUnit, ZoneId zoneId)
ActivityRepository
layer
- the layer for which to return the activitiesstartTime
- the start time of the time interval for which to return the
activitiesendTime
- the end time of the time interval for which to return the
activitiestemporalUnit
- the temporal unit currently displayed in the datelinezoneId
- the timezone currently displayed in the datelineCopyright © 2014 Dirk Lemmermann Software & Consulting. All rights reserved.