boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; final Test test = (Test) o; if (Double.compare(d, test.d) != 0) return false; return true; }