/** * Factory method to create a tuple. * * @param <A> Type of the tuple element. * @param elements The elements of the tuple * @return A new tuple that contains {@code elements} */ @SuppressWarnings("unchecked") public static <A> Tuple<A> of(A ... elements) { return new Tuple<A>(elements); }