private Condition matchesAnyOfPaths(Set<String> paths) { Set<Path> pathSet = new HashSet<>(); for (String path : paths) { pathSet.add(Path.matches(path)); } Path[] result = Collections.toArray(pathSet, Path.class); return Or.any(result); } });
private Condition matchesAnyOfPaths(Set<String> paths) { Set<Path> pathSet = new HashSet<>(); for (String path : paths) { pathSet.add(Path.matches(path)); } Path[] result = Collections.toArray(pathSet, Path.class); return Or.any(result); } });