| Package | Description |
|---|---|
| net.emaze.dysfunctional | |
| net.emaze.dysfunctional.tuples |
| Modifier and Type | Method and Description |
|---|---|
static <T,U,V> Consumer<Triple<T,U,V>> |
Tuples.tupled(TriConsumer<T,U,V> consumer)
Adapts a ternary consumer to an consumer accepting a triple.
|
static <T,U,V,R> Function<Triple<T,U,V>,R> |
Tuples.tupled(TriFunction<T,U,V,R> function)
Adapts a ternary function to a function accepting a triple.
|
static <T,U,V> Predicate<Triple<T,U,V>> |
Tuples.tupled(TriPredicate<T,U,V> predicate)
Adapts a ternary predicate to a predicate accepting a triple.
|
| Modifier and Type | Method and Description |
|---|---|
static <T,U,V> TriConsumer<T,U,V> |
Tuples.Triples.untupled(Consumer<Triple<T,U,V>> consumer)
Adapts an consumer accepting a triple to a ternary consumer.
|
static <T,U,V,R> TriFunction<T,U,V,R> |
Tuples.Triples.untupled(Function<Triple<T,U,V>,R> function)
Adapts a function accepting a triple to a ternary function.
|
static <T,U,V> TriPredicate<T,U,V> |
Tuples.Triples.untupled(Predicate<Triple<T,U,V>> predicate)
Adapts a predicate accepting a triple to a ternary predicate.
|
| Modifier and Type | Method and Description |
|---|---|
Triple<T1,T2,T3> |
TernaryIdentity.apply(T1 first,
T2 second,
T3 third) |
Triple<T3,T2,T1> |
Triple.flip() |
<R1,R2,R3> Triple<R1,R2,R3> |
Triple.map(Function<T1,R1> withFirst,
Function<T2,R2> withSecond,
Function<T3,R3> withThird) |
static <T1,T2,T3> Triple<T1,T2,T3> |
Triple.of(T1 first,
T2 second,
T3 third) |
Triple<T2,T3,T1> |
Triple.rotateLeft() |
Triple<T3,T1,T2> |
Triple.rotateRight() |
Copyright © 2017. All rights reserved.