C - generic temporal type for pure temporal comparison purposespublic interface Temporal<C>
Represents an object which can be sorted on a time axis in a temporal-only way.
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAfter(C temporal)
Queries if this object is after given object on a timeline.
|
default boolean |
isAfterAll(C... temporals)
Queries if this object is after all given objects on a timeline.
|
boolean |
isBefore(C temporal)
Queries if this object is before given object on a timeline.
|
default boolean |
isBeforeAll(C... temporals)
Queries if this object is before all given objects on a timeline.
|
boolean |
isSimultaneous(C temporal)
Queries if this object and given object have the same position
on the time axis.
|
boolean isAfter(C temporal)
Queries if this object is after given object on a timeline.
temporal - object this instance is compared totrue if this instance is temporally after
temporal else falseboolean isBefore(C temporal)
Queries if this object is before given object on a timeline.
temporal - object this instance is compared totrue if this instance is temporally before
temporal else falseboolean isSimultaneous(C temporal)
Queries if this object and given object have the same position on the time axis.
Is equivalent to !isAfter(temporal) && !isBefore(temporal).
This method differs from the Object-method equals()
such that first the comparison type must be a temporal one and second
that only temporal-only state will be considered.
temporal - object this instance is compared totrue if this instance is temporally equal
to temporal else falsedefault boolean isAfterAll(C... temporals)
Queries if this object is after all given objects on a timeline.
temporals - array of objects this instance is compared totrue if this instance is temporally after every object
in temporals else falsedefault boolean isBeforeAll(C... temporals)
Queries if this object is before all given objects on a timeline.
temporals - array of objects this instance is compared totrue if this instance is temporally before every object
in temporals else falseCopyright © 2014–2017. All rights reserved.