| Constructor and Description |
|---|
Pairs() |
| Modifier and Type | Method and Description |
|---|---|
static <T,U> BiConsumer<T,U> |
untupled(Consumer<Pair<T,U>> consumer)
Adapts an consumer accepting a pair to a binary consumer.
|
static <T,U,R> BiFunction<T,U,R> |
untupled(Function<Pair<T,U>,R> function)
Adapts a function accepting a pair to a binary function.
|
static <T,U> BiPredicate<T,U> |
untupled(Predicate<Pair<T,U>> predicate)
Adapts a predicate accepting a pair to a binary predicate.
|
public static <T,U,R> BiFunction<T,U,R> untupled(Function<Pair<T,U>,R> function)
T - the function first parameter typeU - the function second parameter typeR - the function return typefunction - the function to be adaptedpublic static <T,U> BiPredicate<T,U> untupled(Predicate<Pair<T,U>> predicate)
T - the predicate first parameter typeU - the predicate second parameter typepredicate - the predicate to be adaptedpublic static <T,U> BiConsumer<T,U> untupled(Consumer<Pair<T,U>> consumer)
T - the consumer first parameter typeU - the consumer second parameter typeconsumer - the consumer to be adaptedCopyright © 2017. All rights reserved.