Class AbstractReplicaCollection<C extends AbstractReplicaCollection<C>>

  • All Implemented Interfaces:
    java.lang.Iterable<Replica>, ReplicaCollection<C>
    Direct Known Subclasses:
    Endpoints, RangesAtEndpoint

    public abstract class AbstractReplicaCollection<C extends AbstractReplicaCollection<C>>
    extends java.lang.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