T - the temporal typepublic interface TemporalFunction<T>
| Modifier and Type | Method and Description |
|---|---|
String |
describe(T temporal,
Locale locale)
Describe a temporal type
|
Interval |
interval(T temporal,
T other,
ChronoUnit unit)
Return the interval between two temporals
|
boolean |
isAfter(T temporal,
T other)
Test if a temporal is after another temporal
|
boolean |
isBefore(T temporal,
T other)
Test if a temporal is before another temporal
|
boolean |
isSame(T temporal,
T other)
Test if a temporal is the same as another temporal
|
String describe(T temporal, Locale locale)
temporal - the temporal instance to describelocale - the locale to describe the temporal inboolean isSame(T temporal, T other)
temporal - the temporal to test forother - the temporal to test againstboolean isAfter(T temporal, T other)
temporal - the temporal to test forother - the temporal to test againstboolean isBefore(T temporal, T other)
temporal - the temporal to test forother - the temporal to test againstInterval interval(T temporal, T other, ChronoUnit unit)
temporal - the temporal to test forother - the temporal to test againstunit - the unit to measure the interval inIntervalCopyright © 2021 eXparity Limited. All rights reserved.