Returns a suitable hash code. The hash code follows the definition in Map.Entry. @return the hash code.
()
| 230 | * @return the hash code. |
| 231 | */ |
| 232 | @Override |
| 233 | public int hashCode() { |
| 234 | // See Map.Entry API specification |
| 235 | return Objects.hashCode(getKey()) ^ Objects.hashCode(getValue()); |
| 236 | } |
| 237 | |
| 238 | /** |
| 239 | * Returns a String representation of this pair using the format {@code (left,right)}. |