Package com.ssgllc.fish.f.list
Class ValueReducer.Reducer<U,V>
java.lang.Object
com.ssgllc.fish.f.list.ValueReducer.Reducer<U,V>
- Enclosing class:
ValueReducer<U,V>
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresult()The accumulated value, once every iteration has run.voidupdatePrev(V newPrev) Replaces the accumulated value.
-
Field Details
-
forEach
-
acc
-
prev
-
-
Constructor Details
-
Reducer
-
-
Method Details
-
updatePrev
Replaces the accumulated value. Called for you byValueReducer.Reducer.Iteration.put(Object); there is no reason to call it directly.- Parameters:
newPrev- the new accumulated value
-
result
The accumulated value, once every iteration has run.- Returns:
- the folded result
-