public boolean equals()

in cassandra-analytics-core/src/main/java/org/apache/cassandra/spark/bulkwriter/token/CassandraRing.java [225:242]


    public boolean equals(Object other)
    {
        if (this == other)
        {
            return true;
        }
        if (other == null || this.getClass() != other.getClass())
        {
            return false;
        }

        CassandraRing<?> that = (CassandraRing<?>) other;
        return this.partitioner == that.partitioner
            && this.keyspace.equals(that.keyspace)
            && this.replicationFactor.getReplicationStrategy() == that.replicationFactor.getReplicationStrategy()
            && this.replicationFactor.getOptions().equals(that.replicationFactor.getOptions())
            && this.instances.equals(that.instances);
    }