@Test public void addInvalidNodeShouldThrowException() throws Exception { NodeFilter filter = new NodeFilter(); assertFalse(filter.accept(createTestNode("invalid-1", null))); }
public boolean accept(Node node) { for (Entry entry : entries) { if (entry.accept(node)) return true; } return false; }
NodeFilter { public boolean accept(Node node) { for (Entry entry : entries) { if (entry.accept(node)) return true; } return false; } }
NodeFilter { public boolean accept(Node node) { for (Entry entry : entries) { if (entry.accept(node)) return true; } return false; }  }
NodeFilter { public boolean accept(Node node) { for (Entry entry : entries) { if (entry.accept(node)) return true; } return false; }  void add(byte[] nodeId, String hostIpPattern); boolean accept(Node node); boolean accept(InetAddress nodeAddr); }
NodeFilter { public boolean accept(Node node) { for (Entry entry : entries) { if (entry.accept(node)) return true; } return false; }  void add(byte[] nodeId, String hostIpPattern); boolean accept(Node node); boolean accept(InetAddress nodeAddr);  }