Package eu.bandm.tools.ops
Class Consumers
java.lang.Object
eu.bandm.tools.ops.Consumers
Library of constants and combinators for classes implementing
Consumer.-
Method Summary
Modifier and TypeMethodDescriptionaddToSet()static Consumer<Object, StringBuilder> static <D,S> Consumer <D, S> constant()A consumer which does neither need nor affect its state.putMapByKey(Function<? super K, ? extends V> val) putMapByValue(Function<? super V, ? extends K> key) static <A,S> Consumer <A, S> run(BiFunction<A, S, Runnable> r) static <A,S> Consumer <A, S> sequentially(Consumer<? super A, S> step1) static <A,S> Consumer <A, S> sequentially(Consumer<? super A, S> step1, Consumer<? super A, S> step2) static <A,S> Consumer <A, S> sequentially(Consumer<? super A, S> step1, Consumer<? super A, S> step2, Consumer<? super A, S> step3) static <A,S> Consumer <A, S> sequentially(Consumer<? super A, S> step1, Consumer<? super A, S> step2, Consumer<? super A, S> step3, Consumer<? super A, S> step4) static <A,S> Consumer <A, S> sequentially(List<? extends Consumer<? super A, S>> steps) static <D,S> InitConsumer <D, S> withInitialState(Consumer<? super D, S> c, S init)
-
Method Details
-
constant
A consumer which does neither need nor affect its state. -
withInitialState
-
append
-
run
-
addToList
-
addToSet
-
putMapByKey
-
putMapByValue
-
sequentially
-
sequentially
-
sequentially
-
sequentially
-
sequentially
-