Class AbstractReplicaCollection<C extends AbstractReplicaCollection<C>>

java.lang.Object
org.apache.cassandra.locator.AbstractReplicaCollection<C>
All Implemented Interfaces:
Iterable<Replica>, ReplicaCollection<C>
Direct Known Subclasses:
Endpoints, RangesAtEndpoint

public abstract class AbstractReplicaCollection<C extends AbstractReplicaCollection<C>> extends Object implements ReplicaCollection<C>
A collection like class for Replica objects. Since the Replica class contains inetaddress, range, and transient replication status, basic contains and remove methods can be ambiguous. Replicas forces you to be explicit about what you're checking the container for, or removing from it. TODO: there's nothing about this collection that's unique to Replicas, and the implementation could make a useful general purpose immutable list<->set