@FunctionalInterface public interface DateAdjuster extends TemporalAdjuster
This extends TemporalAdjuster for those cases where the temporal to
be adjusted is an ISO-8601 date.
| Modifier and Type | Method and Description |
|---|---|
LocalDate |
adjust(LocalDate date)
Adjusts the date according to the rules of the implementation.
|
default Temporal |
adjustInto(Temporal temporal)
Adjusts the temporal according to the rules of the implementation.
|
LocalDate adjust(LocalDate date)
Implementations must specify how the date is adjusted.
date - the date to adjustDateTimeException - if unable to make the adjustmentArithmeticException - if numeric overflow occursdefault Temporal adjustInto(Temporal temporal)
This method implements TemporalAdjuster by calling adjust(LocalDate).
Note that conversion to LocalDate ignores the calendar system
of the input, which is the desired behaviour in this case.
adjustInto in interface TemporalAdjustertemporal - the temporal to adjustDateTimeException - if unable to make the adjustmentArithmeticException - if numeric overflow occursCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.