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 UnsaturatedFunction1 implements Function {
9 private final Function f;
10 private final Object p0;
12 public UnsaturatedFunction1(Function f, Object p0) {
18 public Object apply(Object p1) {
19 return f.apply(p0, p1);
23 public Object apply(Object p1, Object p2) {
24 return f.apply(p0, p1, p2);
28 public Object apply(Object p1, Object p2, Object p3) {
29 return f.apply(p0, p1, p2, p3);
33 public Object apply(Object p1, Object p2, Object p3, Object p4) {
34 return f.apply(p0, p1, p2, p3, p4);
38 public Object apply(Object p1, Object p2, Object p3, Object p4, Object p5) {
39 return f.apply(p0, p1, p2, p3, p4, p5);
43 public Object apply(Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) {
44 return f.apply(p0, p1, p2, p3, p4, p5, p6);
48 public Object apply(Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) {
49 return f.apply(p0, p1, p2, p3, p4, p5, p6, p7);
53 public Object apply(Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) {
54 return f.applyArray(p0, p1, p2, p3, p4, p5, p6, p7, p8);
58 public Object applyArray(Object ... ps) {
59 Object[] nps = new Object[ps.length + 1];
61 for(int i=0;i<ps.length;++i)
63 return f.applyArray(nps);
67 public String toString() {
68 StringBuilder sb = new StringBuilder();
69 sb.append("(").append(f);
70 sb.append(" ").append(p0);
76 public int hashCode() {
77 int result = f.hashCode();
78 result = 31 * result + (p0 == null ? 0 : p0.hashCode());
83 public boolean equals(Object obj) {
88 if (getClass() != obj.getClass())
90 UnsaturatedFunction1 other = (UnsaturatedFunction1) obj;
91 if(!f.equals(other.f))
96 } else if (!p0.equals(other.p0))