- Type Parameters:
T- The type of state to be transformed in a chain
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface @API(status=EXPERIMENTAL, since="1.7.0") public interface Transformation<T> extends Function<Supplier<T>,
A transformation provides an arbitrary of transformers for values of type
Tin the context of chains. The provided arbitrary of transformers can depend on the previous state, which can be retrieved using the first supplier argument of the function. A transformation can also be restricted by a precondition, which must hold for the transformation to be applicable.
Nested Class Summary
NO_PRECONDITIONstatic final Predicate<?> NO_PRECONDITION
whenCreate a TransformerProvider with a precondition
preconditionOverride this method if the applicability of the provided transformers depends on the previous state
- a predicate with input