MCPcopy Create free account
hub / github.com/oracle/coherence / equals

Method equals

prj/test/functional/io/src/main/java/data/Customer.java:65–75  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

63 // ----- Object methods -------------------------------------------------
64
65 @Override
66 public boolean equals(Object o)
67 {
68 if (! (o instanceof Customer))
69 {
70 return false;
71 }
72 Customer other = (Customer) o;
73 return getId() == other.getId() && getName().compareTo(other.getName()) == 0 &&
74 getAddress().equals(other.getAddress());
75 }
76
77 @Override
78 public int hashCode()

Callers

nothing calls this directly

Calls 5

getIdMethod · 0.95
getNameMethod · 0.95
getAddressMethod · 0.95
compareToMethod · 0.65
equalsMethod · 0.65

Tested by

no test coverage detected