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 Tuple3 implements Tuple {
8 public final Object c0;
9 public final Object c1;
10 public final Object c2;
12 public Tuple3(Object c0, Object c1, Object c2) {
22 public Object get(int id) {
27 default: throw new IndexOutOfBoundsException();
31 public Object[] toArray() {
32 return new Object[] { c0, c1, c2 };
36 public boolean equals(Object obj) {
39 if(obj == null || obj.getClass() != getClass())
41 Tuple3 tuple = (Tuple3)obj;
46 else if(!c0.equals(tuple.c0))
52 else if(!c1.equals(tuple.c1))
58 else if(!c2.equals(tuple.c2))
64 public int hashCode() {
65 int result = c0 == null ? 0 : c0.hashCode();
68 result += c1.hashCode();
71 result += c2.hashCode();
76 public String toString() {
77 StringBuilder b = new StringBuilder();