*/
package org.simantics.scl.runtime.function;
+import java.util.Arrays;
+
@SuppressWarnings("all")
public class UnsaturatedFunctionN implements Function {
private final Function f;
System.arraycopy(ops, 0, nps, ps.length, ops.length);
return f.applyArray(nps);
}
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(")");
return sb.toString();
}
+
+ @Override
+ public int hashCode() {
+ return f.hashCode() + 31 * Arrays.hashCode(ps);
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+ if (getClass() != obj.getClass())
+ return false;
+ UnsaturatedFunctionN other = (UnsaturatedFunctionN) obj;
+ return f.equals(other.f) && Arrays.equals(ps, other.ps);
+ }
+
}