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 UnsaturatedFunction4 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;
15 public UnsaturatedFunction4(Function f, Object p0, Object p1, Object p2, Object p3) {
24 public Object apply(Object p4) {
25 return f.apply(p0, p1, p2, p3, p4);
29 public Object apply(Object p4, Object p5) {
30 return f.apply(p0, p1, p2, p3, p4, p5);
34 public Object apply(Object p4, Object p5, Object p6) {
35 return f.apply(p0, p1, p2, p3, p4, p5, p6);
39 public Object apply(Object p4, Object p5, Object p6, Object p7) {
40 return f.apply(p0, p1, p2, p3, p4, p5, p6, p7);
44 public Object apply(Object p4, Object p5, Object p6, Object p7, Object p8) {
45 return f.applyArray(p0, p1, p2, p3, p4, p5, p6, p7, p8);
49 public Object apply(Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) {
50 return f.applyArray(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9);
54 public Object apply(Object p4, Object p5, Object p6, Object p7, Object p8, Object p9, Object p10) {
55 return f.applyArray(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10);
59 public Object apply(Object p4, Object p5, Object p6, Object p7, Object p8, Object p9, Object p10, Object p11) {
60 return f.applyArray(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11);
64 public Object applyArray(Object ... ps) {
65 Object[] nps = new Object[ps.length + 4];
70 for(int i=0;i<ps.length;++i)
72 return f.applyArray(nps);
76 public String toString() {
77 StringBuilder sb = new StringBuilder();
78 sb.append("(").append(f);
79 sb.append(" ").append(p0);
80 sb.append(" ").append(p1);
81 sb.append(" ").append(p2);
82 sb.append(" ").append(p3);
88 public int hashCode() {
89 int result = f.hashCode();
90 result = 31 * result + (p0 == null ? 0 : p0.hashCode());
91 result = 31 * result + (p1 == null ? 0 : p1.hashCode());
92 result = 31 * result + (p2 == null ? 0 : p2.hashCode());
93 result = 31 * result + (p3 == null ? 0 : p3.hashCode());
98 public boolean equals(Object obj) {
103 if (getClass() != obj.getClass())
105 UnsaturatedFunction4 other = (UnsaturatedFunction4) obj;
106 if(!f.equals(other.f))
109 if (other.p0 != null)
111 } else if (!p0.equals(other.p0))
114 if (other.p1 != null)
116 } else if (!p1.equals(other.p1))
119 if (other.p2 != null)
121 } else if (!p2.equals(other.p2))
124 if (other.p3 != null)
126 } else if (!p3.equals(other.p3))