Returns a three-element tuple.
(Object a, Object b, Object c)
| 97 | |
| 98 | /** Returns a three-element tuple. */ |
| 99 | public static Tuple triple(Object a, Object b, Object c) { |
| 100 | // Equivalent to of(a, b, c) but avoids variadic array allocation. |
| 101 | return wrap(new Object[] {a, b, c}); |
| 102 | } |
| 103 | |
| 104 | /** Returns a tuple that is the concatenation of two tuples. */ |
| 105 | public static Tuple concat(Tuple x, Tuple y) { |