Package de.scravy.bedrock
Class Triple<A,B,C>
java.lang.Object
de.scravy.bedrock.Triple<A,B,C>
- All Implemented Interfaces:
Tuple2<A,B>,Tuple3<A,B,C>,Serializable,Comparable<Triple<A,B,C>>
@Immutable public class Triple<A,B,C> extends Object implements Serializable, Comparable<Triple<A,B,C>>, Tuple3<A,B,C>
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description Triple() -
Method Summary
Modifier and Type Method Description intcompareTo(Triple<A,B,C> tuple)static <A, B, C, L extends HList<L>>
Triple<A,B,C>fromHList(C<A,C<B,C<C,L>>> hlist)<D, E, F> Triple<D,E,F>map(Function<A,D> f, Function<B,E> g, Function<C,F> h)<D> Triple<D,B,C>mapFirst(Function<A,D> f)<D> Triple<A,D,C>mapSecond(Function<B,D> f)<D> Triple<A,B,D>mapThird(Function<C,D> f)C<A,C<B,C<C,Nil>>>toHList()static <D, A extends D, B extends D, C extends D>
List<D>toList(Tuple3<A,B,C> tuple)static <D, A extends D, B extends D, C extends D>
Seq<D>toSeq(Tuple3<A,B,C> triple)static <A, B, C> Triple<A,B,C>triple(A a, B b, C c)<D> Triple<D,B,C>withFirst(D v)<D> Triple<A,D,C>withSecond(D v)<D> Triple<A,B,D>withThird(D v)