public final class Consumers
extends java.lang.Object
Consumer.| Modifier and Type | Method and Description |
|---|---|
static <T,U> java.util.function.Consumer<U> |
curryFirst(java.util.function.BiConsumer<T,U> consumer,
T t)
Curries the second parameter of the
BiConsumer and creates a Consumer. |
static <T,U> java.util.function.Consumer<T> |
currySecond(java.util.function.BiConsumer<T,U> consumer,
U u)
Curries the second parameter of the
BiConsumer and creates a Consumer. |
static <A,B> java.util.function.BiConsumer<B,A> |
reverse(java.util.function.BiConsumer<A,B> consumer)
Reverses the parameter order of the BiConsumer
|
public static <T,U> java.util.function.Consumer<U> curryFirst(@Nonnull
java.util.function.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> java.util.function.Consumer<T> currySecond(@Nonnull
java.util.function.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> java.util.function.BiConsumer<B,A> reverse(@Nonnull
java.util.function.BiConsumer<A,B> consumer)
A - the first parameter typeB - the second parameter typeconsumer - the consumerCopyright © 2015–2018 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.