public static interface CollectionUtil.IndexValueReduceFunctor<V,R>
CollectionUtil.reduce(java.util.Collection<V>, net.sf.kdgcommons.collections.CollectionUtil.IndexValueReduceFunctor<V, R>)
operation. The invoke(int, V, R)
function is called for every element of a collection, and is responsible
for aggregating the results. On the first invocation, the "pending"
result is null
; on subsequent invocations, it is the value
returned from the previous invocation.Modifier and Type | Method and Description |
---|---|
R |
invoke(int index,
V value,
R pendingResult) |