Returns true if the two objects are both Keys, and their names match (case insensitive).
(Object o)
| 795 | * Returns true if the two objects are both Keys, and their names match (case insensitive). |
| 796 | */ |
| 797 | @SuppressWarnings("EqualsGetClass") |
| 798 | @Override |
| 799 | public final boolean equals(Object o) { |
| 800 | if (this == o) { |
| 801 | return true; |
| 802 | } |
| 803 | if (o == null || getClass() != o.getClass()) { |
| 804 | return false; |
| 805 | } |
| 806 | Key<?> key = (Key<?>) o; |
| 807 | return name.equals(key.name); |
| 808 | } |
| 809 | |
| 810 | @Override |
| 811 | public final int hashCode() { |
no outgoing calls
no test coverage detected