public interface TimeInterval extends ComparableElement<TimeInterval>, java.util.Comparator<TimeInterval>, TimeIntervalEntry
Modifier and Type | Interface and Description |
---|---|
static class |
TimeInterval.Comparison
Defines the set of relationships between two time intervals.
|
Modifier and Type | Method and Description |
---|---|
boolean |
current()
Returns true if the interval is current.
|
boolean |
current(long time)
Returns true if the interval is current at the time specified.
|
long |
duration()
Returns the duration of the interval in milliseconds.
|
long |
startTime()
Returns the time that the interval starts in milliseconds.
|
long |
stopTime()
Returns the time that the interval ends in milliseconds.
|
compareTo, compareWith
compare, comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
getTimeInterval
long startTime()
long stopTime()
long duration()
boolean current()
boolean current(long time)