1 package org.simantics.spreadsheet.graph;
3 import java.util.Collections;
6 public class SpreadsheetCellContent implements SheetNode {
8 public final SpreadsheetCell cell;
10 public SpreadsheetCellContent(SpreadsheetCell cell) {
15 public String getName() {
20 public Map getChildren() {
21 return Collections.emptyMap();
25 public Map getProperties() {
26 if(cell.hasExpression()) {
27 return Collections.singletonMap("expression", new SpreadsheetCellContentExpression(cell));
29 return Collections.emptyMap();
34 public int hashCode() {
37 result = prime * result + ((cell == null) ? 0 : cell.hashCode());
42 public boolean equals(Object obj) {
47 if (getClass() != obj.getClass())
49 SpreadsheetCellContent other = (SpreadsheetCellContent) obj;
51 if (other.cell != null)
53 } else if (!cell.equals(other.cell))