T - generic type of time pointspublic interface TimeLine<T> extends Comparator<T>
Represents a time axis where a point in time can be moved forward or backward.
As step width, the associated time axis will usually use the smallest registered time unit.
| Modifier and Type | Method and Description |
|---|---|
default T |
getMaximum()
Yields the maximum of this time axis.
|
default T |
getMinimum()
Yields the minimum of this time axis.
|
default boolean |
isCalendrical()
Determines if this timeline is calendrical or not.
|
T |
stepBackwards(T timepoint)
Move given point in time backwards by one step.
|
T |
stepForward(T timepoint)
Move given point in time forward by one step.
|
compare, comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongT stepForward(T timepoint)
Move given point in time forward by one step.
timepoint - point in time to be moved forwardnull if applied on the maximum of timelineT stepBackwards(T timepoint)
Move given point in time backwards by one step.
timepoint - point in time to be moved backwardsnull if applied on the minimum of timelinedefault T getMinimum()
Yields the minimum of this time axis.
Implementors of this interface are required to override this method otherwise an
UnsupportedOperationException will happen at runtime.
default T getMaximum()
Yields the maximum of this time axis.
Implementors of this interface are required to override this method otherwise an
UnsupportedOperationException will happen at runtime.
default boolean isCalendrical()
CalendarDateCopyright © 2014–2017. All rights reserved.