Class Funnel.Batch<F,T>

java.lang.Object
com.google.mu.util.Funnel.Batch<F,T>
Type Parameters:
F - batch input element type
T - batch output element type
All Implemented Interfaces:
Consumer<F>
Enclosing class:
Funnel<T>

@Deprecated public static final class Funnel.Batch<F,T> extends Object implements Consumer<F>
Deprecated.
too niche
Holds the elements to be converted through a single batch conversion.
  • Method Details

    • accept

      public void accept(F source)
      Deprecated.
      Adds source to be converted.
      Specified by:
      accept in interface Consumer<F>
    • accept

      public void accept(F source, Function<? super T,? extends T> postConversion)
      Deprecated.
      Adds source to be converted. postConversion will be applied after the batch conversion completes, to compute the final result for this input.
    • accept

      public void accept(F source, Consumer<? super T> aftereffect)
      Deprecated.
      Adds source to be converted. aftereffect will be applied against the conversion result after the batch completes.