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 |
|---|---|
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, equalsT 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 timelineboolean isCalendrical()
CalendarDateCopyright © 2014–2018. All rights reserved.