--- /dev/null
+package org.simantics.spreadsheet.graph;\r
+\r
+import java.io.Serializable;\r
+\r
+import org.simantics.databoard.Bindings;\r
+import org.simantics.databoard.binding.Binding;\r
+\r
+public class SpreadsheetSCLConstant implements Serializable {\r
+\r
+ private static final long serialVersionUID = 428064772427245449L;\r
+\r
+ public String expression;\r
+ public Object content;\r
+ \r
+ public static final Binding BINDING = Bindings.getBindingUnchecked(SpreadsheetSCLConstant.class);\r
+\r
+ public SpreadsheetSCLConstant(String expression, Object object) {\r
+ this.content = object;\r
+ this.expression = expression;\r
+ }\r
+ \r
+ @Override\r
+ public String toString() {\r
+ return super.toString();\r
+ }\r
+\r
+ @Override\r
+ public int hashCode() {\r
+ final int prime = 31;\r
+ int result = 1;\r
+ result = prime * result + ((expression == null) ? 0 : expression.hashCode());\r
+ return result;\r
+ }\r
+\r
+ @Override\r
+ public boolean equals(Object obj) {\r
+ if (this == obj)\r
+ return true;\r
+ if (obj == null)\r
+ return false;\r
+ if (getClass() != obj.getClass())\r
+ return false;\r
+ SpreadsheetSCLConstant other = (SpreadsheetSCLConstant) obj;\r
+ if (expression == null) {\r
+ if (other.expression != null)\r
+ return false;\r
+ } else if (!expression.equals(other.expression))\r
+ return false;\r
+ return true;\r
+ }\r
+\r
+}\r