MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / equals

Method equals

reflection/pets/Individual.java:21–24  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

19 }
20 public long id() { return id; }
21 @Override public boolean equals(Object o) {
22 return o instanceof Individual &&
23 Objects.equals(id, ((Individual)o).id);
24 }
25 @Override public int hashCode() {
26 return Objects.hash(name, id);
27 }

Callers 4

testMethod · 0.45
invokeMethod · 0.45
positionAvailableMethod · 0.45
fillPositionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected