@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * Constants.HASH_PRIME + cellLabel.hashCode(); hashCode = hashCode * Constants.HASH_PRIME + content.hashCode(); return hashCode; }
@Override public boolean equals(Object object) { if (this == object) { return true; } if (!(object instanceof Cell)) { return false; } Cell cell = (Cell) object; return cellLabel.equals(cell.cellLabel) && content.equals(cell.content); }