/** * This code is generated in org.simantics.scl.runtime.generation.GenerateTuples. * Do not edit manually! */ package org.simantics.scl.runtime.tuple; public class Tuple7 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 Tuple7(Object c0, Object c1, Object c2, Object c3, Object c4, Object c5, Object c6) { this.c0 = c0; this.c1 = c1; this.c2 = c2; this.c3 = c3; this.c4 = c4; this.c5 = c5; this.c6 = c6; } public int length() { return 7; } 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; default: throw new IndexOutOfBoundsException(); } } public Object[] toArray() { return new Object[] { c0, c1, c2, c3, c4, c5, c6 }; } @Override public boolean equals(Object obj) { if(obj == this) return true; if(obj == null || obj.getClass() != getClass()) return false; Tuple7 tuple = (Tuple7)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; 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(); 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(')'); return b.toString(); } }