com.opengamma.strata.basics.date

• All Superinterfaces:
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
extends TemporalAdjuster
Functional interface that can adjust a date.

This extends TemporalAdjuster for those cases where the temporal to be adjusted is an ISO-8601 date.

• Method Summary

All Methods
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.
• Method Detail

LocalDate adjust(LocalDate date)
Adjusts the date according to the rules of the implementation.

Implementations must specify how the date is adjusted.

Parameters:
date - the date to adjust
Returns:
Throws:
DateTimeException - if unable to make the adjustment
ArithmeticException - if numeric overflow occurs

default Temporal adjustInto(Temporal temporal)
Adjusts the temporal according to the rules of the implementation.

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.

Specified by:
adjustInto in interface TemporalAdjuster
Parameters:
temporal - the temporal to adjust
Returns:
DateTimeException - if unable to make the adjustment
ArithmeticException - if numeric overflow occurs