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)
| 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. |
no outgoing calls
no test coverage detected