-package org.simantics.spreadsheet.graph;
+package org.simantics.spreadsheet.solver;
import java.util.Collections;
import java.util.Map;
import org.simantics.databoard.binding.mutable.Variant;
+@SuppressWarnings("rawtypes")
public class SpreadsheetCellEditable implements SheetNode {
- public final SpreadsheetCell cell;
+ private static final long serialVersionUID = -5078387091775971986L;
+ public final SpreadsheetCell cell;
+
public SpreadsheetCellEditable(SpreadsheetCell spreadsheetCell) {
this.cell = spreadsheetCell;
}
public Map getProperties() {
return Collections.emptyMap();
}
-
+
@Override
public int hashCode() {
final int prime = 31;
if (cell.content == null || cell.content instanceof SpreadsheetFormula || cell.content instanceof SpreadsheetSCLConstant)
return false;
if (cell.content instanceof String) {
- String content = (String) cell.content;
- if (content.isEmpty())
- return false;
+ String content = (String) cell.content;
+ if (content.isEmpty())
+ return false;
}
if (cell.content instanceof Variant) {
- Variant content = (Variant) cell.content;
- if (content.getValue() == null)
- return false;
- if (content.getValue() instanceof String) {
- String actualContent = (String) content.getValue();
- if (actualContent.isEmpty())
- return false;
- }
+ Variant content = (Variant) cell.content;
+ if (content.getValue() == null)
+ return false;
+ if (content.getValue() instanceof String) {
+ String actualContent = (String) content.getValue();
+ if (actualContent.isEmpty())
+ return false;
+ }
}
// System.out.println("content is " + cell.content);
return true;