Returns a tuple containing the given elements.
(Iterable<?> seq)
| 68 | |
| 69 | /** Returns a tuple containing the given elements. */ |
| 70 | public static Tuple copyOf(Iterable<?> seq) { |
| 71 | if (seq instanceof Tuple) { |
| 72 | return (Tuple) seq; |
| 73 | } |
| 74 | return wrap(Iterables.toArray(seq, Object.class)); |
| 75 | } |
| 76 | |
| 77 | /** Returns a tuple containing the given elements. */ |
| 78 | public static Tuple of(Object... elems) { |
no test coverage detected