private Set<String> getServerGroupNames(DeploymentPlan plan) { Set<String> names = new HashSet<String>(); for (Set<ServerGroupDeploymentPlan> sgdps : plan.getServerGroupDeploymentPlans()) { for (ServerGroupDeploymentPlan sgdp : sgdps) { names.add(sgdp.getServerGroupName()); } } return names; }
private Set<String> getServerGroupNames(DeploymentPlan plan) { Set<String> names = new HashSet<String>(); for (Set<ServerGroupDeploymentPlan> sgdps : plan.getServerGroupDeploymentPlans()) { for (ServerGroupDeploymentPlan sgdp : sgdps) { names.add(sgdp.getServerGroupName()); } } return names; }