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 Tuple5 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;
14 public Tuple5(Object c0, Object c1, Object c2, Object c3, Object c4) {
26 public Object get(int id) {
33 default: throw new IndexOutOfBoundsException();
37 public Object[] toArray() {
38 return new Object[] { c0, c1, c2, c3, c4 };
42 public boolean equals(Object obj) {
45 if(obj == null || obj.getClass() != getClass())
47 Tuple5 tuple = (Tuple5)obj;
52 else if(!c0.equals(tuple.c0))
58 else if(!c1.equals(tuple.c1))
64 else if(!c2.equals(tuple.c2))
70 else if(!c3.equals(tuple.c3))
76 else if(!c4.equals(tuple.c4))
82 public int hashCode() {
83 int result = c0 == null ? 0 : c0.hashCode();
86 result += c1.hashCode();
89 result += c2.hashCode();
92 result += c3.hashCode();
95 result += c4.hashCode();
100 public String toString() {
101 StringBuilder b = new StringBuilder();