- Type Parameters:
M - the generic type of the model.
T - the generic type of the field.
- All Superinterfaces:
- java.util.function.BiFunction<M,T,M>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface ObjectImmutableSetter<M,T>
extends java.util.function.BiFunction<M,T,M>
A functional interface to define an immutable "setter" method of a generic type.
As the model element is immutable this method is not a real "setter".
Instead it returns a new immutable copy of the original model element that has the
specified field updated to the new value.