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

Method equals

java/org/apache/catalina/tribes/membership/MemberImpl.java:605–614  ·  view source on GitHub ↗

Returns true if the param o is a McastMember with the same name @param o The object to test for equality

(Object o)

Source from the content-addressed store, hash-verified

603 * @param o The object to test for equality
604 */
605 @Override
606 public boolean equals(Object o) {
607 if (o instanceof MemberImpl) {
608 return Arrays.equals(this.getHost(), ((MemberImpl) o).getHost()) &&
609 this.getPort() == ((MemberImpl) o).getPort() &&
610 Arrays.equals(this.getUniqueId(), ((MemberImpl) o).getUniqueId());
611 } else {
612 return false;
613 }
614 }
615
616 /**
617 * Set the host.

Callers

nothing calls this directly

Calls 7

equalsMethod · 0.95
getHostMethod · 0.95
getPortMethod · 0.95
getUniqueIdMethod · 0.95
getHostMethod · 0.65
getPortMethod · 0.65
getUniqueIdMethod · 0.65

Tested by

no test coverage detected