U - generic type of time unitP - generic type of duration typepublic interface TimeMetric<U,P>
Computes temporal distances on a time axis as time spans.
| Modifier and Type | Method and Description |
|---|---|
<T extends TimePoint<? super U,T>> |
between(T start,
T end)
Computes the temporal distance between two time points.
|
<T extends TimePoint<? super U,T>> P between(T start, T end)
Computes the temporal distance between two time points.
Important note: This method might not work in Java 6 under some circumstances.
In case of any problem users can use the equivalent method until() defined in the class
TimePoint.
T - generic type of time pointstart - first time pointend - second time pointstart is after endTimePoint.until(TimePoint, TimeMetric)