A - the activity typepublic class IntervalTree<A extends Activity> extends Object
IntervalTreeActivityRepository| Constructor and Description |
|---|
IntervalTree() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(A activity) |
void |
clear() |
Instant |
getEarliestTimeUsed() |
Collection<A> |
getIntersectingObjects(TimeInterval period) |
Instant |
getLatestTimeUsed() |
boolean |
remove(A activity)
Method to remove period/key object from tree.
|
Collection<A> |
removePeriod(TimeInterval period) |
long |
size() |
public final Instant getEarliestTimeUsed()
public final Instant getLatestTimeUsed()
public final boolean add(A activity)
public final boolean remove(A activity)
activity - the activity to removepublic final Collection<A> removePeriod(TimeInterval period)
public final Collection<A> getIntersectingObjects(TimeInterval period)
public final long size()
public final void clear()
Copyright © 2014 Dirk Lemmermann Software & Consulting. All rights reserved.