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 UnsaturatedFunction5 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;
16 public UnsaturatedFunction5(Function f, Object p0, Object p1, Object p2, Object p3, Object p4) {
26 public Object apply(Object p5) {
27 return f.apply(p0, p1, p2, p3, p4, p5);
31 public Object apply(Object p5, Object p6) {
32 return f.apply(p0, p1, p2, p3, p4, p5, p6);
36 public Object apply(Object p5, Object p6, Object p7) {
37 return f.apply(p0, p1, p2, p3, p4, p5, p6, p7);
41 public Object apply(Object p5, Object p6, Object p7, Object p8) {
42 return f.applyArray(p0, p1, p2, p3, p4, p5, p6, p7, p8);
46 public Object apply(Object p5, Object p6, Object p7, Object p8, Object p9) {
47 return f.applyArray(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9);
51 public Object apply(Object p5, Object p6, Object p7, Object p8, Object p9, Object p10) {
52 return f.applyArray(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10);
56 public Object apply(Object p5, Object p6, Object p7, Object p8, Object p9, Object p10, Object p11) {
57 return f.applyArray(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11);
61 public Object apply(Object p5, Object p6, Object p7, Object p8, Object p9, Object p10, Object p11, Object p12) {
62 return f.applyArray(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12);
66 public Object applyArray(Object ... ps) {
67 Object[] nps = new Object[ps.length + 5];
73 for(int i=0;i<ps.length;++i)
75 return f.applyArray(nps);
79 public String toString() {
80 StringBuilder sb = new StringBuilder();
81 sb.append("(").append(f);
82 sb.append(" ").append(p0);
83 sb.append(" ").append(p1);
84 sb.append(" ").append(p2);
85 sb.append(" ").append(p3);
86 sb.append(" ").append(p4);
92 public int hashCode() {
93 int result = f.hashCode();
94 result = 31 * result + (p0 == null ? 0 : p0.hashCode());
95 result = 31 * result + (p1 == null ? 0 : p1.hashCode());
96 result = 31 * result + (p2 == null ? 0 : p2.hashCode());
97 result = 31 * result + (p3 == null ? 0 : p3.hashCode());
98 result = 31 * result + (p4 == null ? 0 : p4.hashCode());
103 public boolean equals(Object obj) {
108 if (getClass() != obj.getClass())
110 UnsaturatedFunction5 other = (UnsaturatedFunction5) obj;
111 if(!f.equals(other.f))
114 if (other.p0 != null)
116 } else if (!p0.equals(other.p0))
119 if (other.p1 != null)
121 } else if (!p1.equals(other.p1))
124 if (other.p2 != null)
126 } else if (!p2.equals(other.p2))
129 if (other.p3 != null)
131 } else if (!p3.equals(other.p3))
134 if (other.p4 != null)
136 } else if (!p4.equals(other.p4))