2 * This code is generated in org.simantics.scl.runtime.generation.GenerateFunctions.
3 * Do not edit manually!
5 package org.simantics.scl.runtime.function;
7 @SuppressWarnings("all")
8 public class UnsaturatedFunction6 implements Function {
9 private final Function f;
10 private final Object p0;
11 private final Object p1;
12 private final Object p2;
13 private final Object p3;
14 private final Object p4;
15 private final Object p5;
17 public UnsaturatedFunction6(Function f, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) {
28 public Object apply(Object p6) {
29 return f.apply(p0, p1, p2, p3, p4, p5, p6);
33 public Object apply(Object p6, Object p7) {
34 return f.apply(p0, p1, p2, p3, p4, p5, p6, p7);
38 public Object apply(Object p6, Object p7, Object p8) {
39 return f.applyArray(p0, p1, p2, p3, p4, p5, p6, p7, p8);
43 public Object apply(Object p6, Object p7, Object p8, Object p9) {
44 return f.applyArray(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9);
48 public Object apply(Object p6, Object p7, Object p8, Object p9, Object p10) {
49 return f.applyArray(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10);
53 public Object apply(Object p6, Object p7, Object p8, Object p9, Object p10, Object p11) {
54 return f.applyArray(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11);
58 public Object apply(Object p6, Object p7, Object p8, Object p9, Object p10, Object p11, Object p12) {
59 return f.applyArray(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12);
63 public Object apply(Object p6, Object p7, Object p8, Object p9, Object p10, Object p11, Object p12, Object p13) {
64 return f.applyArray(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13);
68 public Object applyArray(Object ... ps) {
69 Object[] nps = new Object[ps.length + 6];
76 for(int i=0;i<ps.length;++i)
78 return f.applyArray(nps);
82 public String toString() {
83 StringBuilder sb = new StringBuilder();
84 sb.append("(").append(f);
85 sb.append(" ").append(p0);
86 sb.append(" ").append(p1);
87 sb.append(" ").append(p2);
88 sb.append(" ").append(p3);
89 sb.append(" ").append(p4);
90 sb.append(" ").append(p5);
96 public int hashCode() {
97 int result = f.hashCode();
98 result = 31 * result + (p0 == null ? 0 : p0.hashCode());
99 result = 31 * result + (p1 == null ? 0 : p1.hashCode());
100 result = 31 * result + (p2 == null ? 0 : p2.hashCode());
101 result = 31 * result + (p3 == null ? 0 : p3.hashCode());
102 result = 31 * result + (p4 == null ? 0 : p4.hashCode());
103 result = 31 * result + (p5 == null ? 0 : p5.hashCode());
108 public boolean equals(Object obj) {
113 if (getClass() != obj.getClass())
115 UnsaturatedFunction6 other = (UnsaturatedFunction6) obj;
116 if(!f.equals(other.f))
119 if (other.p0 != null)
121 } else if (!p0.equals(other.p0))
124 if (other.p1 != null)
126 } else if (!p1.equals(other.p1))
129 if (other.p2 != null)
131 } else if (!p2.equals(other.p2))
134 if (other.p3 != null)
136 } else if (!p3.equals(other.p3))
139 if (other.p4 != null)
141 } else if (!p4.equals(other.p4))
144 if (other.p5 != null)
146 } else if (!p5.equals(other.p5))