Compares this object with the specified object and indicates if they are equal. In order to be equal, object must be an instance of Double and the bit pattern of its double value is the same as this object's. @param object the object to compare this double with. @return {
(Object object)
| 185 | * {@code Double}; {@code false} otherwise. |
| 186 | */ |
| 187 | @Override |
| 188 | public boolean equals(Object object) { |
| 189 | return (object == this) |
| 190 | || (object instanceof Double) |
| 191 | && (doubleToLongBits(this.value) == doubleToLongBits(((Double) object).value)); |
| 192 | } |
| 193 | |
| 194 | @Override |
| 195 | public float floatValue() { |
nothing calls this directly
no test coverage detected