S- type of the previous state that is the bases for the computation of the new state.
T- type of the element value that is used to compute the change of state.
@Internal public interface StateTransformationFunction<S,T>
|Modifier and Type||Method and Description|
Binary function that applies a given value to the given old state to compute the new state.
S apply(S previousState, T value) throws Exception
previousState- the previous state that is the basis for the transformation.
value- the value that the implementation applies to the old state to obtain the new state.
Exception- if something goes wrong in applying the transformation function.
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.