| Package | Description |
|---|---|
| org.exparity.hamcrest.date.core | |
| org.exparity.hamcrest.date.core.function | |
| org.exparity.hamcrest.date.core.types |
| Modifier and Type | Method and Description |
|---|---|
Interval |
TemporalFunction.interval(T temporal,
T other,
ChronoUnit unit)
Return the interval between two temporals
|
| Constructor and Description |
|---|
IsWithin(Interval interval,
TemporalConverter<T,E> converter,
TemporalProvider<E> reference,
TemporalFunction<E> functions) |
IsWithin(Interval interval,
TemporalConverter<T,E> converter,
TemporalProvider<E> reference,
TemporalFunction<E> functions,
Optional<ZoneId> zone,
Locale locale) |
| Modifier and Type | Method and Description |
|---|---|
Interval |
SqlDateFunction.interval(Date temporal,
Date other,
ChronoUnit unit) |
Interval |
DateFunction.interval(Date expected,
Date actual,
ChronoUnit unit) |
Interval |
InstantFunction.interval(Instant expected,
Instant other,
ChronoUnit unit) |
Interval |
LocalDateFunction.interval(LocalDate expected,
LocalDate other,
ChronoUnit unit) |
Interval |
LocalDateTimeFunction.interval(LocalDateTime expected,
LocalDateTime other,
ChronoUnit unit) |
Interval |
LocalTimeFunction.interval(LocalTime expected,
LocalTime other,
ChronoUnit unit) |
Interval |
OffsetDateTimeFunction.interval(OffsetDateTime expected,
OffsetDateTime other,
ChronoUnit unit) |
Interval |
ZonedDateTimeFunction.interval(ZonedDateTime expected,
ZonedDateTime other,
ChronoUnit unit) |
| Modifier and Type | Method and Description |
|---|---|
static Interval |
Interval.of(Duration duration)
|
static Interval |
Interval.of(long period,
ChronoUnit unit)
Create an
Interval from an explicit period and ChronoUnit |
static Interval |
Interval.of(Period period)
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Interval.longerThan(Interval other) |
Copyright © 2021 eXparity Limited. All rights reserved.