Ejemplo n.º 1
0
 @Override
 public int hashCode() {
   int hashCode = 1;
   hashCode = hashCode * Constants.HASH_PRIME + cellLabel.hashCode();
   hashCode = hashCode * Constants.HASH_PRIME + content.hashCode();
   return hashCode;
 }
Ejemplo n.º 2
0
    @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);
    }