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