MCPcopy Create free account
hub / github.com/apache/commons-lang / equals

Method equals

src/main/java/org/apache/commons/lang3/builder/IDKey.java:52–63  ·  view source on GitHub ↗

Tests if instances are equal. @param other The other object to compare to @return if the instances are for the same object

(final Object other)

Source from the content-addressed store, hash-verified

50 * @return if the instances are for the same object
51 */
52 @Override
53 public boolean equals(final Object other) {
54 if (!(other instanceof IDKey)) {
55 return false;
56 }
57 final IDKey idKey = (IDKey) other;
58 if (id != idKey.id) {
59 return false;
60 }
61 // Note that identity equals is used.
62 return value == idKey.value;
63 }
64
65 /**
66 * Gets the hash code, the system identity hash code.

Callers 7

acceptMethod · 0.45
DiffBuilderMethod · 0.45
appendMethod · 0.45
buildMethod · 0.45
appendMethod · 0.45
reflectionAppendMethod · 0.45
appendDetailMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected