/** * Create a {@link Tuple7} with the given objects. * * @param t1 The first value in the tuple. * @param t2 The second value in the tuple. * @param t3 The third value in the tuple. * @param t4 The fourth value in the tuple. * @param t5 The fifth value in the tuple. * @param t6 The sixth value in the tuple. * @param t7 The seventh value in the tuple. * @param <T1> The type of the first value. * @param <T2> The type of the second value. * @param <T3> The type of the third value. * @param <T4> The type of the fourth value. * @param <T5> The type of the fifth value. * @param <T6> The type of the sixth value. * @param <T7> The type of the seventh value. * @return The new {@link Tuple7}. */ public static <T1, T2, T3, T4, T5, T6, T7> Tuple7<T1, T2, T3, T4, T5, T6, T7> of(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7) { return new Tuple7<T1, T2, T3, T4, T5, T6, T7>(7, t1, t2, t3, t4, t5, t6, t7); }
@Override public int hashCode() { int result = super.hashCode(); result = 31 * result + (t8 != null ? t8.hashCode() : 0); return result; }
@Override public String toString() { return super.toString()+ (t8 != null ? ","+t8.toString() : ""); } }
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Tuple8)) return false; if (!super.equals(o)) return false; Tuple8 tuple8 = (Tuple8) o; if (t8 != null ? !t8.equals(tuple8.t8) : tuple8.t8 != null) return false; return true; }