@Test public void testHostnameIsCanonicalized() { Layer1Node node = new Layer1Node("NODE", "iface"); assertThat(node.getHostname(), equalTo("node")); assertThat(node, equalTo(new Layer1Node("node", "iface"))); assertThat(node, not(equalTo(new Layer1Node("node", "IFACE")))); }
@JsonProperty(PROP_HOSTNAME) public @Nonnull String getHostname() { return _hostname; }
Layer1Node implements Comparable<Layer1Node> { @JsonProperty(PROP_HOSTNAME) public @Nonnull String getHostname() { return _hostname; } }
Layer1Node implements Comparable<Layer1Node> { @JsonProperty(PROP_HOSTNAME) public @Nonnull String getHostname() { return _hostname; } Layer1Node(String hostname, String interfaceName); }
Layer1Node implements Comparable<Layer1Node> { @JsonProperty(PROP_HOSTNAME) public @Nonnull String getHostname() { return _hostname; } Layer1Node(String hostname, String interfaceName); @Override int compareTo(Layer1Node o); @Override boolean equals(@Nullable Object obj); @JsonProperty(PROP_HOSTNAME) @Nonnull String getHostname(); @JsonProperty(PROP_INTERFACE_NAME) @Nonnull String getInterfaceName(); @Override int hashCode(); @Override String toString(); @Nullable Layer1Node toLogicalNode(NetworkConfigurations networkConfigurations); }
Layer1Node implements Comparable<Layer1Node> { @JsonProperty(PROP_HOSTNAME) public @Nonnull String getHostname() { return _hostname; } Layer1Node(String hostname, String interfaceName); @Override int compareTo(Layer1Node o); @Override boolean equals(@Nullable Object obj); @JsonProperty(PROP_HOSTNAME) @Nonnull String getHostname(); @JsonProperty(PROP_INTERFACE_NAME) @Nonnull String getInterfaceName(); @Override int hashCode(); @Override String toString(); @Nullable Layer1Node toLogicalNode(NetworkConfigurations networkConfigurations);  }