private boolean isExcluded(final Object modelObject) { final Coordinates coords = modelUtil.getCoordinates(modelObject); for (final Coordinates excludedCoordinate : excludedCoordinates) { if (excludedCoordinate.matches(coords)) { return true; } } return false; }
public void setExcludedCoordinates(final Set<String> coordinates) { excludedCoordinates.clear(); for (final String coordinate : coordinates) { excludedCoordinates.add(Coordinates.parse(coordinate)); } }