boolean (final Object o) { if (o == this) return true; if (!(o instanceof EqualsAndHashCode2)) return false; final EqualsAndHashCode2 other = (EqualsAndHashCode2) o; if (this.x != other.x) return false; if (this.y != other.y) return false; if (Float.compare(this.f, other.f) != 0) return false; if (Double.compare(this.d, other.d) != 0) return false; if (this.b != other.b) return false; return true; }