public abstract class Consumers extends Object
Modifier and Type | Method and Description |
---|---|
static <A> Consumer<A,List<A>> |
addToList() |
static <A> Consumer<A,Set<A>> |
addToSet() |
static Consumer<Object,StringBuilder> |
append(String separator) |
static <D,S> BiFunction<D,S,S> |
asBiFunction(Consumer<? super D,S> c) |
static <D,S> Consumer<D,S> |
constant() |
static <K,V> Consumer<K,Map<K,V>> |
putMapByKey(Function<? super K,? extends V> val) |
static <K,V> Consumer<V,Map<K,V>> |
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) |
public static <D,S> Consumer<D,S> constant()
public static <D,S> BiFunction<D,S,S> asBiFunction(Consumer<? super D,S> c)
public static <D,S> InitConsumer<D,S> withInitialState(Consumer<? super D,S> c, S init)
public static Consumer<Object,StringBuilder> append(String separator)
public static <A,S> Consumer<A,S> run(BiFunction<A,S,Runnable> r)
public static <K,V> Consumer<K,Map<K,V>> putMapByKey(Function<? super K,? extends V> val)
public static <K,V> Consumer<V,Map<K,V>> putMapByValue(Function<? super V,? extends K> key)
public static <A,S> Consumer<A,S> sequentially(List<? extends Consumer<? super A,S>> steps)
public static <A,S> Consumer<A,S> sequentially(Consumer<? super A,S> step1, Consumer<? super A,S> step2)
public static <A,S> Consumer<A,S> sequentially(Consumer<? super A,S> step1, Consumer<? super A,S> step2, Consumer<? super A,S> step3)
see also the complete user documentation .