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 UnsaturatedFunction3 implements Function {
9 private final Function f;
10 private final Object p0;
11 private final Object p1;
12 private final Object p2;
14 public UnsaturatedFunction3(Function f, Object p0, Object p1, Object p2) {
22 public Object apply(Object p3) {
23 return f.apply(p0, p1, p2, p3);
27 public Object apply(Object p3, Object p4) {
28 return f.apply(p0, p1, p2, p3, p4);
32 public Object apply(Object p3, Object p4, Object p5) {
33 return f.apply(p0, p1, p2, p3, p4, p5);
37 public Object apply(Object p3, Object p4, Object p5, Object p6) {
38 return f.apply(p0, p1, p2, p3, p4, p5, p6);
42 public Object apply(Object p3, Object p4, Object p5, Object p6, Object p7) {
43 return f.apply(p0, p1, p2, p3, p4, p5, p6, p7);
47 public Object apply(Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) {
48 return f.applyArray(p0, p1, p2, p3, p4, p5, p6, p7, p8);
52 public Object apply(Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) {
53 return f.applyArray(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9);
57 public Object apply(Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9, Object p10) {
58 return f.applyArray(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10);
62 public Object applyArray(Object ... ps) {
63 Object[] nps = new Object[ps.length + 3];
67 for(int i=0;i<ps.length;++i)
69 return f.applyArray(nps);
73 public String toString() {
74 StringBuilder sb = new StringBuilder();
75 sb.append("(").append(f);
76 sb.append(" ").append(p0);
77 sb.append(" ").append(p1);
78 sb.append(" ").append(p2);
84 public int hashCode() {
85 int result = f.hashCode();
86 result = 31 * result + (p0 == null ? 0 : p0.hashCode());
87 result = 31 * result + (p1 == null ? 0 : p1.hashCode());
88 result = 31 * result + (p2 == null ? 0 : p2.hashCode());
93 public boolean equals(Object obj) {
98 if (getClass() != obj.getClass())
100 UnsaturatedFunction3 other = (UnsaturatedFunction3) obj;
101 if(!f.equals(other.f))
104 if (other.p0 != null)
106 } else if (!p0.equals(other.p0))
109 if (other.p1 != null)
111 } else if (!p1.equals(other.p1))
114 if (other.p2 != null)
116 } else if (!p2.equals(other.p2))