@Test public void arrayConstructor() { NodeAddress[] nodes = new NodeAddress[]{ new NodeAddress("127.0.0.1",8000), new NodeAddress("127.0.0.1",8001) }; ConstNodeDiscovery discovery = new ConstNodeDiscovery(nodes); Assert.assertArrayEquals( nodes, discovery.getNodeAddresses().toArray() ); }
@Override public List<NodeAddress> getNodeAddresses() { return nodes; }
ConstNodeDiscovery implements NodeDiscovery { @Override public List<NodeAddress> getNodeAddresses() { return nodes; } }
ConstNodeDiscovery implements NodeDiscovery { @Override public List<NodeAddress> getNodeAddresses() { return nodes; } ConstNodeDiscovery(Collection<NodeAddress> nodes);  ConstNodeDiscovery(NodeAddress... nodes); }
ConstNodeDiscovery implements NodeDiscovery { @Override public List<NodeAddress> getNodeAddresses() { return nodes; } ConstNodeDiscovery(Collection<NodeAddress> nodes);  ConstNodeDiscovery(NodeAddress... nodes); @Override List<NodeAddress> getNodeAddresses(); }
ConstNodeDiscovery implements NodeDiscovery { @Override public List<NodeAddress> getNodeAddresses() { return nodes; } ConstNodeDiscovery(Collection<NodeAddress> nodes);  ConstNodeDiscovery(NodeAddress... nodes); @Override List<NodeAddress> getNodeAddresses();  }