| Modifier and Type | Method and Description |
|---|---|
static <T,U> Consumer<U> |
curryFirst(BiConsumer<T,U> consumer,
T t)
Curries the second parameter of the
BiConsumer and creates a Consumer. |
static <T,U> Consumer<T> |
currySecond(BiConsumer<T,U> consumer,
U u)
Curries the second parameter of the
BiConsumer and creates a Consumer. |
static <A,B> BiConsumer<B,A> |
reverse(BiConsumer<A,B> consumer)
Reverses the parameter order of the BiConsumer
|
public static <T,U> Consumer<U> curryFirst(@Nonnull BiConsumer<T,U> consumer, T t)
BiConsumer and creates a Consumer.T - the first parameter typeU - the second parameter typeconsumer - the consumert - the curried parameterpublic static <T,U> Consumer<T> currySecond(@Nonnull BiConsumer<T,U> consumer, U u)
BiConsumer and creates a Consumer.T - the first parameter typeU - the second parameter typeconsumer - the consumeru - the curried parameterpublic static <A,B> BiConsumer<B,A> reverse(@Nonnull BiConsumer<A,B> consumer)
A - the first parameter typeB - the second parameter typeconsumer - the consumerCopyright © 2015–2021 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.