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, compareWithcompare, comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLonggetTimeIntervallong startTime()
long stopTime()
long duration()
boolean current()
boolean current(long time)