1 package org.simantics.spreadsheet.solver;
3 import java.io.Serializable;
5 import org.simantics.databoard.Bindings;
6 import org.simantics.databoard.binding.Binding;
8 public class SpreadsheetSCLConstant implements Serializable {
10 private static final long serialVersionUID = 428064772427245449L;
12 private String expression;
13 private Object content;
15 public static final Binding BINDING = Bindings.getBindingUnchecked(SpreadsheetSCLConstant.class);
17 public SpreadsheetSCLConstant(String expression, Object object) {
18 this.content = object;
19 this.expression = expression;
22 public Object getContent() {
26 public String getExpression() {
31 public String toString() {
32 return super.toString();
36 public int hashCode() {
39 result = prime * result + ((expression == null) ? 0 : expression.hashCode());
44 public boolean equals(Object obj) {
49 if (getClass() != obj.getClass())
51 SpreadsheetSCLConstant other = (SpreadsheetSCLConstant) obj;
52 if (expression == null) {
53 if (other.expression != null)
55 } else if (!expression.equals(other.expression))