1 package org.simantics.spreadsheet.graph;
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 public String expression;
13 public 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;
23 public String toString() {
24 return super.toString();
28 public int hashCode() {
31 result = prime * result + ((expression == null) ? 0 : expression.hashCode());
36 public boolean equals(Object obj) {
41 if (getClass() != obj.getClass())
43 SpreadsheetSCLConstant other = (SpreadsheetSCLConstant) obj;
44 if (expression == null) {
45 if (other.expression != null)
47 } else if (!expression.equals(other.expression))