public class LocalDateTimeFunction extends Object implements TemporalFunction<LocalDateTime>
TemporalFunction for LocalDateTime objects.| Constructor and Description |
|---|
LocalDateTimeFunction() |
| Modifier and Type | Method and Description |
|---|---|
String |
describe(LocalDateTime temporal,
Locale locale)
Describe a temporal type
|
Interval |
interval(LocalDateTime expected,
LocalDateTime other,
ChronoUnit unit)
Return the interval between two temporals
|
boolean |
isAfter(LocalDateTime expected,
LocalDateTime actual)
Test if a temporal is after another temporal
|
boolean |
isBefore(LocalDateTime expected,
LocalDateTime actual)
Test if a temporal is before another temporal
|
boolean |
isSame(LocalDateTime expected,
LocalDateTime actual)
Test if a temporal is the same as another temporal
|
public boolean isAfter(LocalDateTime expected, LocalDateTime actual)
TemporalFunctionisAfter in interface TemporalFunction<LocalDateTime>expected - the temporal to test foractual - the temporal to test againstpublic boolean isBefore(LocalDateTime expected, LocalDateTime actual)
TemporalFunctionisBefore in interface TemporalFunction<LocalDateTime>expected - the temporal to test foractual - the temporal to test againstpublic boolean isSame(LocalDateTime expected, LocalDateTime actual)
TemporalFunctionisSame in interface TemporalFunction<LocalDateTime>expected - the temporal to test foractual - the temporal to test againstpublic Interval interval(LocalDateTime expected, LocalDateTime other, ChronoUnit unit)
TemporalFunctioninterval in interface TemporalFunction<LocalDateTime>expected - the temporal to test forother - the temporal to test againstunit - the unit to measure the interval inIntervalpublic String describe(LocalDateTime temporal, Locale locale)
TemporalFunctiondescribe in interface TemporalFunction<LocalDateTime>temporal - the temporal instance to describelocale - the locale to describe the temporal inCopyright © 2021 eXparity Limited. All rights reserved.