Class AbstractReplicaCollection.ReplicaList

  • All Implemented Interfaces:
    java.lang.Iterable<Replica>
    Enclosing class:
    AbstractReplicaCollection<C extends AbstractReplicaCollection<C>>

    protected static class AbstractReplicaCollection.ReplicaList
    extends java.lang.Object
    implements java.lang.Iterable<Replica>
    A simple list with no comodification checks and immutability by default (only append permitted, and only one initial copy) this permits us to reduce the amount of garbage generated, by not wrapping iterators or unnecessarily copying and reduces the amount of indirection necessary, as well as ensuring monomorphic callsites
    • Constructor Detail

      • ReplicaList

        public ReplicaList()
      • ReplicaList

        public ReplicaList​(int capacity)
      • ReplicaList

        public ReplicaList​(Replica[] contents,
                           int begin,
                           int size)