Class ValueReducer.Reducer.Iteration<U,V>

java.lang.Object
com.ssgllc.fish.f.list.ValueReducer.Reducer.Iteration<U,V>
Enclosing class:
ValueReducer.Reducer<U,V>

public static class ValueReducer.Reducer.Iteration<U,V> extends Object
  • Field Details

    • curr

      public final U curr
    • index

      public final Integer index
    • list

      public final List<U> list
  • Constructor Details

  • Method Details

    • prev

      public V prev()
      The value accumulated so far, before this iteration contributes.
      Returns:
      the running value
    • put

      public ValueReducer.Reducer<U,V> put(V newValue)
      Records this iteration's contribution and returns the reducer, so the chain continues.
      Parameters:
      newValue - the new accumulated value
      Returns:
      the reducer