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>
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–2017 The Apache Software Foundation. All rights reserved.