@Test(expected = NullPointerException.class) public void testNullInput() { assertThat(new NodeNameInFilter("x*").isAccepted(null), is(false)); }
@Override public boolean isAccepted(Node node) { return wildcards.stream().anyMatch(p -> nameMatcher.matches(p, node.getName())); }
NodeNameInFilter implements NodeFilter { @Override public boolean isAccepted(Node node) { return wildcards.stream().anyMatch(p -> nameMatcher.matches(p, node.getName())); } }
NodeNameInFilter implements NodeFilter { @Override public boolean isAccepted(Node node) { return wildcards.stream().anyMatch(p -> nameMatcher.matches(p, node.getName())); } NodeNameInFilter(String... patterns); }
NodeNameInFilter implements NodeFilter { @Override public boolean isAccepted(Node node) { return wildcards.stream().anyMatch(p -> nameMatcher.matches(p, node.getName())); } NodeNameInFilter(String... patterns); final NodeNameInFilter addFilter(String... patterns); @Override boolean isAccepted(Node node); }
NodeNameInFilter implements NodeFilter { @Override public boolean isAccepted(Node node) { return wildcards.stream().anyMatch(p -> nameMatcher.matches(p, node.getName())); } NodeNameInFilter(String... patterns); final NodeNameInFilter addFilter(String... patterns); @Override boolean isAccepted(Node node);  }