@Test public void testConstruction() { final String physicalNetworkValue = "s"; final PhysicalNetwork physicalNetwork = PhysicalNetwork .physicalNetwork(physicalNetworkValue); assertThat(physicalNetwork, is(notNullValue())); assertThat(physicalNetwork.physicalNetwork(), is(physicalNetworkValue)); }
private PhysicalNetwork(String physicalNetwork) { checkNotNull(physicalNetwork, "PhysicalNetwork cannot be null"); this.physicalNetwork = physicalNetwork; }
PhysicalNetwork { private PhysicalNetwork(String physicalNetwork) { checkNotNull(physicalNetwork, "PhysicalNetwork cannot be null"); this.physicalNetwork = physicalNetwork; } }
PhysicalNetwork { private PhysicalNetwork(String physicalNetwork) { checkNotNull(physicalNetwork, "PhysicalNetwork cannot be null"); this.physicalNetwork = physicalNetwork; } private  PhysicalNetwork(String physicalNetwork); }
PhysicalNetwork { private PhysicalNetwork(String physicalNetwork) { checkNotNull(physicalNetwork, "PhysicalNetwork cannot be null"); this.physicalNetwork = physicalNetwork; } private  PhysicalNetwork(String physicalNetwork); static PhysicalNetwork physicalNetwork(String physicalNetwork); String physicalNetwork(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
PhysicalNetwork { private PhysicalNetwork(String physicalNetwork) { checkNotNull(physicalNetwork, "PhysicalNetwork cannot be null"); this.physicalNetwork = physicalNetwork; } private  PhysicalNetwork(String physicalNetwork); static PhysicalNetwork physicalNetwork(String physicalNetwork); String physicalNetwork(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }