/** * This code is generated in org.simantics.scl.runtime.generation.GenerateTuples. * Do not edit manually! */ package org.simantics.scl.runtime.tuple; public class Tuple23 implements Tuple { public final Object c0; public final Object c1; public final Object c2; public final Object c3; public final Object c4; public final Object c5; public final Object c6; public final Object c7; public final Object c8; public final Object c9; public final Object c10; public final Object c11; public final Object c12; public final Object c13; public final Object c14; public final Object c15; public final Object c16; public final Object c17; public final Object c18; public final Object c19; public final Object c20; public final Object c21; public final Object c22; public Tuple23(Object c0, Object c1, Object c2, Object c3, Object c4, Object c5, Object c6, Object c7, Object c8, Object c9, Object c10, Object c11, Object c12, Object c13, Object c14, Object c15, Object c16, Object c17, Object c18, Object c19, Object c20, Object c21, Object c22) { this.c0 = c0; this.c1 = c1; this.c2 = c2; this.c3 = c3; this.c4 = c4; this.c5 = c5; this.c6 = c6; this.c7 = c7; this.c8 = c8; this.c9 = c9; this.c10 = c10; this.c11 = c11; this.c12 = c12; this.c13 = c13; this.c14 = c14; this.c15 = c15; this.c16 = c16; this.c17 = c17; this.c18 = c18; this.c19 = c19; this.c20 = c20; this.c21 = c21; this.c22 = c22; } public int length() { return 23; } public Object get(int id) { switch(id) { case 0: return c0; case 1: return c1; case 2: return c2; case 3: return c3; case 4: return c4; case 5: return c5; case 6: return c6; case 7: return c7; case 8: return c8; case 9: return c9; case 10: return c10; case 11: return c11; case 12: return c12; case 13: return c13; case 14: return c14; case 15: return c15; case 16: return c16; case 17: return c17; case 18: return c18; case 19: return c19; case 20: return c20; case 21: return c21; case 22: return c22; default: throw new IndexOutOfBoundsException(); } } public Object[] toArray() { return new Object[] { c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22 }; } @Override public boolean equals(Object obj) { if(obj == this) return true; if(obj == null || obj.getClass() != getClass()) return false; Tuple23 tuple = (Tuple23)obj; if(c0 == null) { if(tuple.c0 != null) return false; } else if(!c0.equals(tuple.c0)) return false; if(c1 == null) { if(tuple.c1 != null) return false; } else if(!c1.equals(tuple.c1)) return false; if(c2 == null) { if(tuple.c2 != null) return false; } else if(!c2.equals(tuple.c2)) return false; if(c3 == null) { if(tuple.c3 != null) return false; } else if(!c3.equals(tuple.c3)) return false; if(c4 == null) { if(tuple.c4 != null) return false; } else if(!c4.equals(tuple.c4)) return false; if(c5 == null) { if(tuple.c5 != null) return false; } else if(!c5.equals(tuple.c5)) return false; if(c6 == null) { if(tuple.c6 != null) return false; } else if(!c6.equals(tuple.c6)) return false; if(c7 == null) { if(tuple.c7 != null) return false; } else if(!c7.equals(tuple.c7)) return false; if(c8 == null) { if(tuple.c8 != null) return false; } else if(!c8.equals(tuple.c8)) return false; if(c9 == null) { if(tuple.c9 != null) return false; } else if(!c9.equals(tuple.c9)) return false; if(c10 == null) { if(tuple.c10 != null) return false; } else if(!c10.equals(tuple.c10)) return false; if(c11 == null) { if(tuple.c11 != null) return false; } else if(!c11.equals(tuple.c11)) return false; if(c12 == null) { if(tuple.c12 != null) return false; } else if(!c12.equals(tuple.c12)) return false; if(c13 == null) { if(tuple.c13 != null) return false; } else if(!c13.equals(tuple.c13)) return false; if(c14 == null) { if(tuple.c14 != null) return false; } else if(!c14.equals(tuple.c14)) return false; if(c15 == null) { if(tuple.c15 != null) return false; } else if(!c15.equals(tuple.c15)) return false; if(c16 == null) { if(tuple.c16 != null) return false; } else if(!c16.equals(tuple.c16)) return false; if(c17 == null) { if(tuple.c17 != null) return false; } else if(!c17.equals(tuple.c17)) return false; if(c18 == null) { if(tuple.c18 != null) return false; } else if(!c18.equals(tuple.c18)) return false; if(c19 == null) { if(tuple.c19 != null) return false; } else if(!c19.equals(tuple.c19)) return false; if(c20 == null) { if(tuple.c20 != null) return false; } else if(!c20.equals(tuple.c20)) return false; if(c21 == null) { if(tuple.c21 != null) return false; } else if(!c21.equals(tuple.c21)) return false; if(c22 == null) { if(tuple.c22 != null) return false; } else if(!c22.equals(tuple.c22)) return false; return true; } @Override public int hashCode() { int result = c0 == null ? 0 : c0.hashCode(); result *= 31; if(c1 != null) result += c1.hashCode(); result *= 31; if(c2 != null) result += c2.hashCode(); result *= 31; if(c3 != null) result += c3.hashCode(); result *= 31; if(c4 != null) result += c4.hashCode(); result *= 31; if(c5 != null) result += c5.hashCode(); result *= 31; if(c6 != null) result += c6.hashCode(); result *= 31; if(c7 != null) result += c7.hashCode(); result *= 31; if(c8 != null) result += c8.hashCode(); result *= 31; if(c9 != null) result += c9.hashCode(); result *= 31; if(c10 != null) result += c10.hashCode(); result *= 31; if(c11 != null) result += c11.hashCode(); result *= 31; if(c12 != null) result += c12.hashCode(); result *= 31; if(c13 != null) result += c13.hashCode(); result *= 31; if(c14 != null) result += c14.hashCode(); result *= 31; if(c15 != null) result += c15.hashCode(); result *= 31; if(c16 != null) result += c16.hashCode(); result *= 31; if(c17 != null) result += c17.hashCode(); result *= 31; if(c18 != null) result += c18.hashCode(); result *= 31; if(c19 != null) result += c19.hashCode(); result *= 31; if(c20 != null) result += c20.hashCode(); result *= 31; if(c21 != null) result += c21.hashCode(); result *= 31; if(c22 != null) result += c22.hashCode(); return result; } @Override public String toString() { StringBuilder b = new StringBuilder(); b.append('('); b.append(c0); b.append(','); b.append(c1); b.append(','); b.append(c2); b.append(','); b.append(c3); b.append(','); b.append(c4); b.append(','); b.append(c5); b.append(','); b.append(c6); b.append(','); b.append(c7); b.append(','); b.append(c8); b.append(','); b.append(c9); b.append(','); b.append(c10); b.append(','); b.append(c11); b.append(','); b.append(c12); b.append(','); b.append(c13); b.append(','); b.append(c14); b.append(','); b.append(c15); b.append(','); b.append(c16); b.append(','); b.append(c17); b.append(','); b.append(c18); b.append(','); b.append(c19); b.append(','); b.append(c20); b.append(','); b.append(c21); b.append(','); b.append(c22); b.append(')'); return b.toString(); } }