public class TimeRange extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
expand(TimeRange r)
Expand this time range so that is encompasses the argument time range.
|
long |
getDuration() |
TimeInterval |
getInterval()
This is a suggested interval to perform calculations such as aggregations over.
|
boolean |
isValid() |
public long getDuration()
public TimeInterval getInterval()
If you have a short time range you might want to aggregate over seconds, if you have decades of time range you should aggregate over year.
Obviously there is no hard and fast rule for this, but defining here gives a reasonable set of defaults which won't overload the average visualisation.
public boolean isValid()
public void expand(TimeRange r)
r - the rCopyright © 2017–2018 Committed. All rights reserved.