Skip to content

Commit

Permalink
Revert "add bufferWhile/bufferUntil builder accumulator convenience m…
Browse files Browse the repository at this point in the history
…ethod"

This reverts commit 63b65ef.
  • Loading branch information
davidmoten committed Dec 3, 2024
1 parent 63b65ef commit 8e23d29
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions kool/src/main/java/org/davidmoten/kool/BufferBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import java.util.List;
import java.util.concurrent.Callable;

import org.davidmoten.kool.function.BiConsumer;
import org.davidmoten.kool.function.BiFunction;
import org.davidmoten.kool.function.BiPredicate;
import org.davidmoten.kool.function.Function;
Expand Down Expand Up @@ -94,11 +93,6 @@ public BuilderHasAccumulator<T, S> accumulator(BiFunction<? super S, ? super T,
b.accumulator = accumulator;
return new BuilderHasAccumulator<T, S>(b);
}

public BuilderHasAccumulator<T, S> accumulator(BiConsumer<? super S, ? super T> accumulator) {
b.accumulator = (buffer, t) -> {accumulator.accept(buffer, t); return buffer;};
return new BuilderHasAccumulator<T, S>(b);
}
}

public static final class BuilderHasAccumulator<T, S> {
Expand Down

0 comments on commit 8e23d29

Please sign in to comment.