2 * This code is generated in org.simantics.scl.runtime.generation.GenerateTuples.
3 * Do not edit manually!
5 package org.simantics.scl.runtime.tuple;
7 public class Tuple6 implements Tuple {
8 public final Object c0;
9 public final Object c1;
10 public final Object c2;
11 public final Object c3;
12 public final Object c4;
13 public final Object c5;
15 public Tuple6(Object c0, Object c1, Object c2, Object c3, Object c4, Object c5) {
28 public Object get(int id) {
36 default: throw new IndexOutOfBoundsException();
40 public Object[] toArray() {
41 return new Object[] { c0, c1, c2, c3, c4, c5 };
45 public boolean equals(Object obj) {
48 if(obj == null || obj.getClass() != getClass())
50 Tuple6 tuple = (Tuple6)obj;
55 else if(!c0.equals(tuple.c0))
61 else if(!c1.equals(tuple.c1))
67 else if(!c2.equals(tuple.c2))
73 else if(!c3.equals(tuple.c3))
79 else if(!c4.equals(tuple.c4))
85 else if(!c5.equals(tuple.c5))
91 public int hashCode() {
92 int result = c0 == null ? 0 : c0.hashCode();
95 result += c1.hashCode();
98 result += c2.hashCode();
101 result += c3.hashCode();
104 result += c4.hashCode();
107 result += c5.hashCode();
112 public String toString() {
113 StringBuilder b = new StringBuilder();