MCPcopy Create free account
hub / github.com/apache/tomcat / equals

Method equals

java/org/apache/catalina/tribes/io/ChannelData.java:301–308  ·  view source on GitHub ↗

Compares to ChannelData objects, only compares on getUniqueId().equals(o.getUniqueId()) @param o Object @return boolean

(Object o)

Source from the content-addressed store, hash-verified

299 * @return boolean
300 */
301 @Override
302 public boolean equals(Object o) {
303 if (o instanceof ChannelData) {
304 return Arrays.equals(getUniqueId(), ((ChannelData) o).getUniqueId());
305 } else {
306 return false;
307 }
308 }
309
310 /**
311 * Create a shallow clone, only the data gets recreated

Callers 1

testCloneMethod · 0.95

Calls 3

equalsMethod · 0.95
getUniqueIdMethod · 0.95
getUniqueIdMethod · 0.65

Tested by 1

testCloneMethod · 0.76