in mantis-publish/mantis-publish-core/src/main/java/io/mantisrx/publish/internal/discovery/proto/WorkerHost.java [98:124]
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
WorkerHost other = (WorkerHost) obj;
if (host == null) {
if (other.host != null)
return false;
} else if (!host.equals(other.host))
return false;
if (port == null) {
if (other.port != null)
return false;
} else {
if (other.port == null)
return false;
if (port.size() != other.port.size())
return false;
for (int p = 0; p < port.size(); p++)
if (port.get(p) != other.port.get(p))
return false;
}
return true;
}