- Type Parameters:
T- generic type of entities this operator can be applied to
Applies a functional calculation on chronological entities and yields the result as changed copy.
Technical note: This interface is only suitable in an
Java-pre8-environment (that is Java 6 + 7) if the type T is constrained
to a final type. Otherwise the compiler will fail when compiling
entity.with(operator) due to limited support
of type inference. This constraint does not exist with Java 8 and later.
- Meno Hochschild
Adjusts given entity and yields a changed copy of argument.
Will be called by
- Specified by:
entity- chronological entity to be adjusted
- adjusted copy of argument which itself remains unaffected
ChronoException- if there is no element rule for adjusting
IllegalArgumentException- if any invalid value is tried
ArithmeticException- in case of numerical overflow