private boolean shouldRetain(Set<String> filter, AppStatusResource appStatusResource) { String deploymentId = appStatusResource.getDeploymentId(); boolean directMatch = filter.contains(deploymentId); if (directMatch) { return true; } for (String candidate : filter) { if (candidate.endsWith(".*")) { String pattern = candidate.substring(0, candidate.length() - "*".length()); if (deploymentId.startsWith(pattern)) { return true; } } } return false; }
private boolean shouldRetain(Set<String> filter, AppStatusResource appStatusResource) { String deploymentId = appStatusResource.getDeploymentId(); boolean directMatch = filter.contains(deploymentId); if (directMatch) { return true; } for (String candidate : filter) { if (candidate.endsWith(".*")) { String pattern = candidate.substring(0, candidate.length() - "*".length()); if (deploymentId.startsWith(pattern)) { return true; } } } return false; }
continue; modelBuilder.addRow().addValue(appStatusResource.getDeploymentId()).addValue(appStatusResource.getState()) .addValue(appStatusResource.getInstances().getContent().size()); splits.add(line);
continue; modelBuilder.addRow().addValue(appStatusResource.getDeploymentId()).addValue(appStatusResource.getState()) .addValue(appStatusResource.getInstances().getContent().size()); splits.add(line);