in cassandra-analytics-core/src/main/java/org/apache/cassandra/spark/bulkwriter/RingInstance.java [134:153]
public boolean equals(@Nullable Object other)
{
if (this == other)
{
return true;
}
if (other == null || getClass() != other.getClass())
{
return false;
}
final RingInstance that = (RingInstance) other;
return Objects.equals(clusterId, that.clusterId)
&& Objects.equals(ringEntry.token(), that.ringEntry.token())
&& Objects.equals(ringEntry.fqdn(), that.ringEntry.fqdn())
&& Objects.equals(ringEntry.rack(), that.ringEntry.rack())
&& Objects.equals(ringEntry.address(), that.ringEntry.address())
&& ringEntry.port() == that.ringEntry.port()
&& Objects.equals(ringEntry.datacenter(), that.ringEntry.datacenter());
}