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

Method equals

prj/test/functional/io/src/main/java/data/Address.java:80–92  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

78 // ----- Object methods -------------------------------------------------
79
80 @Override
81 public boolean equals(Object o)
82 {
83 if (! (o instanceof Address))
84 {
85 return false;
86 }
87 Address other = (Address) o;
88 return getStreet().compareTo(other.getStreet()) == 0 &&
89 getCity().compareTo(other.getCity()) == 0 &&
90 getState().compareTo(other.getState()) == 0 &&
91 getZipcode() == other.getZipcode();
92 }
93
94 @Override
95 public String toString()

Callers

nothing calls this directly

Calls 5

getStreetMethod · 0.95
getCityMethod · 0.95
getStateMethod · 0.95
getZipcodeMethod · 0.95
compareToMethod · 0.65

Tested by

no test coverage detected