public abstract class Tuples extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Tuples.Pairs
untupled.
|
static class |
Tuples.Triples
untupled.
|
| Constructor and Description |
|---|
Tuples() |
| Modifier and Type | Method and Description |
|---|---|
static <T,U> Action<Pair<T,U>> |
tupled(BinaryAction<T,U> action)
Adapts a binary action to an action accepting a pair.
|
static <R,T,U> Delegate<R,Pair<T,U>> |
tupled(BinaryDelegate<R,T,U> delegate)
Adapts a binary delegate to a delegate accepting a pair.
|
static <T,U> Predicate<Pair<T,U>> |
tupled(BinaryPredicate<T,U> predicate)
Adapts a binary predicate to a predicate accepting a pair.
|
static <T,U,V> Action<Triple<T,U,V>> |
tupled(TernaryAction<T,U,V> action)
Adapts a ternary action to an action accepting a triple.
|
static <R,T,U,V> Delegate<R,Triple<T,U,V>> |
tupled(TernaryDelegate<R,T,U,V> delegate)
Adapts a ternary delegate to a delegate accepting a triple.
|
static <T,U,V> Predicate<Triple<T,U,V>> |
tupled(TernaryPredicate<T,U,V> predicate)
Adapts a ternary predicate to a predicate accepting a triple.
|
public static <R,T,U> Delegate<R,Pair<T,U>> tupled(BinaryDelegate<R,T,U> delegate)
R - the delegate return typeT - the delegate first parameter typeU - the delegate second parameter typedelegate - the delegate to be adaptedpublic static <T,U> Predicate<Pair<T,U>> tupled(BinaryPredicate<T,U> predicate)
T - the predicate first parameter typeU - the predicate second parameter typepredicate - the predicate to be adaptedpublic static <T,U> Action<Pair<T,U>> tupled(BinaryAction<T,U> action)
T - the action first parameter typeU - the action second parameter typeaction - the action to be adaptedpublic static <R,T,U,V> Delegate<R,Triple<T,U,V>> tupled(TernaryDelegate<R,T,U,V> delegate)
R - the delegate return typeT - the delegate first parameter typeU - the delegate second parameter typeV - the delegate third parameter typedelegate - the delegate to be adaptedpublic static <T,U,V> Predicate<Triple<T,U,V>> tupled(TernaryPredicate<T,U,V> predicate)
T - the predicate first parameter typeU - the predicate second parameter typeV - the predicate third parameter typepredicate - the predicate to be adaptedpublic static <T,U,V> Action<Triple<T,U,V>> tupled(TernaryAction<T,U,V> action)
T - the action first parameter typeU - the action second parameter typeV - the action third parameter typeaction - the action to be adaptedCopyright © 2016. All rights reserved.