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

Method hashCode

src/main/java/org/apache/commons/lang3/tuple/Pair.java:232–236  ·  view source on GitHub ↗

Returns a suitable hash code. The hash code follows the definition in Map.Entry. @return the hash code.

()

Source from the content-addressed store, hash-verified

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)}.

Callers

nothing calls this directly

Calls 2

getKeyMethod · 0.95
getValueMethod · 0.95

Tested by

no test coverage detected