public ReplicaSets(Collection<ReplicaSet> rsSpecs){
  if (rsSpecs != null) {
    rsSpecs.forEach(null);
  }
  Collections.sort(nonReplicaSets);
}

public ReplicaSets ( Collection < ReplicaSet > rsSpecs ) { if ( rsSpecs != null ) { rsSpecs . forEach ( null ) ; } Collections . sort ( nonReplicaSets ) ; }
create a set of replica set specifications .
