// com/mindviewinc/util/Tuple.java // ©2015 MindView LLC: see Copyright.txt // Tuple library using type argument inference. package com.mindviewinc.util; public class Tuple { public static TwoTuple tuple(A a, B b) { return new TwoTuple<>(a, b); } public static ThreeTuple tuple(A a, B b, C c) { return new ThreeTuple<>(a, b, c); } public static FourTuple tuple(A a, B b, C c, D d) { return new FourTuple<>(a, b, c, d); } public static FiveTuple tuple(A a, B b, C c, D d, E e) { return new FiveTuple<>(a, b, c, d, e); } }