boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Equation equation = (Equation)o; return key.equals(equation.key) && result.equals(equation.result); }