/** * This code is generated in org.simantics.scl.runtime.generation.GenerateTuples. * Do not edit manually! */ package org.simantics.scl.runtime.tuple; public class Tuple15 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 Tuple15(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) { 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; } public int length() { return 15; } 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; 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 }; } @Override public boolean equals(Object obj) { if(obj == this) return true; if(obj == null || obj.getClass() != getClass()) return false; Tuple15 tuple = (Tuple15)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; 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(); 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(')'); return b.toString(); } }