MCPcopy Create free account
hub / github.com/davidgiven/luje / equals

Method equals

lib/java/lang/Double.java:187–192  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

doubleToLongBitsMethod · 0.95

Tested by

no test coverage detected