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