]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.scl.runtime/src/org/simantics/scl/runtime/function/UnsaturatedFunction8.java
Merge branch 'feature/funcwrite'
[simantics/platform.git] / bundles / org.simantics.scl.runtime / src / org / simantics / scl / runtime / function / UnsaturatedFunction8.java
1 /**
2  * This code is generated in org.simantics.scl.runtime.generation.GenerateFunctions.
3  * Do not edit manually!
4  */
5 package org.simantics.scl.runtime.function;
6
7 @SuppressWarnings("all")
8 public class UnsaturatedFunction8 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;
16     private final Object p6;
17     private final Object p7;
18
19     public UnsaturatedFunction8(Function f, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) {
20         this.f = f;
21         this.p0 = p0;
22         this.p1 = p1;
23         this.p2 = p2;
24         this.p3 = p3;
25         this.p4 = p4;
26         this.p5 = p5;
27         this.p6 = p6;
28         this.p7 = p7;
29     }
30
31     @Override
32     public Object apply(Object p8) {
33         return f.applyArray(p0, p1, p2, p3, p4, p5, p6, p7, p8);
34     }
35
36     @Override
37     public Object apply(Object p8, Object p9) {
38         return f.applyArray(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9);
39     }
40
41     @Override
42     public Object apply(Object p8, Object p9, Object p10) {
43         return f.applyArray(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10);
44     }
45
46     @Override
47     public Object apply(Object p8, Object p9, Object p10, Object p11) {
48         return f.applyArray(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11);
49     }
50
51     @Override
52     public Object apply(Object p8, Object p9, Object p10, Object p11, Object p12) {
53         return f.applyArray(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12);
54     }
55
56     @Override
57     public Object apply(Object p8, Object p9, Object p10, Object p11, Object p12, Object p13) {
58         return f.applyArray(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13);
59     }
60
61     @Override
62     public Object apply(Object p8, Object p9, Object p10, Object p11, Object p12, Object p13, Object p14) {
63         return f.applyArray(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14);
64     }
65
66     @Override
67     public Object apply(Object p8, Object p9, Object p10, Object p11, Object p12, Object p13, Object p14, Object p15) {
68         return f.applyArray(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15);
69     }
70
71     @Override
72     public Object applyArray(Object ... ps) {
73         Object[] nps = new Object[ps.length + 8];
74         nps[0] = p0;
75         nps[1] = p1;
76         nps[2] = p2;
77         nps[3] = p3;
78         nps[4] = p4;
79         nps[5] = p5;
80         nps[6] = p6;
81         nps[7] = p7;
82         for(int i=0;i<ps.length;++i)
83             nps[i + 8] = ps[i];
84         return f.applyArray(nps);
85     }
86
87     @Override
88     public String toString() {
89         StringBuilder sb = new StringBuilder();
90         sb.append("(").append(f);
91         sb.append(" ").append(p0);
92         sb.append(" ").append(p1);
93         sb.append(" ").append(p2);
94         sb.append(" ").append(p3);
95         sb.append(" ").append(p4);
96         sb.append(" ").append(p5);
97         sb.append(" ").append(p6);
98         sb.append(" ").append(p7);
99         sb.append(")");
100         return sb.toString();
101     }
102
103     @Override
104     public int hashCode() {
105         int result = f.hashCode();
106         result = 31 * result + (p0 == null ? 0 : p0.hashCode());
107         result = 31 * result + (p1 == null ? 0 : p1.hashCode());
108         result = 31 * result + (p2 == null ? 0 : p2.hashCode());
109         result = 31 * result + (p3 == null ? 0 : p3.hashCode());
110         result = 31 * result + (p4 == null ? 0 : p4.hashCode());
111         result = 31 * result + (p5 == null ? 0 : p5.hashCode());
112         result = 31 * result + (p6 == null ? 0 : p6.hashCode());
113         result = 31 * result + (p7 == null ? 0 : p7.hashCode());
114         return result;
115     }
116
117     @Override
118     public boolean equals(Object obj) {
119         if (this == obj)
120             return true;
121         if (obj == null)
122             return false;
123         if (getClass() != obj.getClass())
124             return false;
125         UnsaturatedFunction8 other = (UnsaturatedFunction8) obj;
126         if(!f.equals(other.f))
127             return false;
128         if(p0 == null) {
129             if (other.p0 != null)
130                 return false;
131         } else if (!p0.equals(other.p0))
132             return false;
133         if(p1 == null) {
134             if (other.p1 != null)
135                 return false;
136         } else if (!p1.equals(other.p1))
137             return false;
138         if(p2 == null) {
139             if (other.p2 != null)
140                 return false;
141         } else if (!p2.equals(other.p2))
142             return false;
143         if(p3 == null) {
144             if (other.p3 != null)
145                 return false;
146         } else if (!p3.equals(other.p3))
147             return false;
148         if(p4 == null) {
149             if (other.p4 != null)
150                 return false;
151         } else if (!p4.equals(other.p4))
152             return false;
153         if(p5 == null) {
154             if (other.p5 != null)
155                 return false;
156         } else if (!p5.equals(other.p5))
157             return false;
158         if(p6 == null) {
159             if (other.p6 != null)
160                 return false;
161         } else if (!p6.equals(other.p6))
162             return false;
163         if(p7 == null) {
164             if (other.p7 != null)
165                 return false;
166         } else if (!p7.equals(other.p7))
167             return false;
168         return true;
169     }
170
171 }