@Test public void testJsonSerialization() { NodeInterfacePair nip = NodeInterfacePair.of("host", "iface"); assertThat(BatfishObjectMapper.clone(nip, NodeInterfacePair.class), equalTo(nip)); }
public static NodeInterfacePair of(String hostname, String interfaceName) { return CACHE.getUnchecked(new NodeInterfacePair(hostname, interfaceName)); }
NodeInterfacePair implements Serializable, Comparable<NodeInterfacePair> { public static NodeInterfacePair of(String hostname, String interfaceName) { return CACHE.getUnchecked(new NodeInterfacePair(hostname, interfaceName)); } }
NodeInterfacePair implements Serializable, Comparable<NodeInterfacePair> { public static NodeInterfacePair of(String hostname, String interfaceName) { return CACHE.getUnchecked(new NodeInterfacePair(hostname, interfaceName)); } private  NodeInterfacePair(String hostname, String interfaceName); }
NodeInterfacePair implements Serializable, Comparable<NodeInterfacePair> { public static NodeInterfacePair of(String hostname, String interfaceName) { return CACHE.getUnchecked(new NodeInterfacePair(hostname, interfaceName)); } private  NodeInterfacePair(String hostname, String interfaceName); static NodeInterfacePair of(String hostname, String interfaceName); static NodeInterfacePair of(Interface iface); @JsonProperty(PROP_HOSTNAME) @Nonnull String getHostname(); @JsonProperty(PROP_INTERFACE) @Nonnull String getInterface(); @Override String toString(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override int compareTo(NodeInterfacePair other); }
NodeInterfacePair implements Serializable, Comparable<NodeInterfacePair> { public static NodeInterfacePair of(String hostname, String interfaceName) { return CACHE.getUnchecked(new NodeInterfacePair(hostname, interfaceName)); } private  NodeInterfacePair(String hostname, String interfaceName); static NodeInterfacePair of(String hostname, String interfaceName); static NodeInterfacePair of(Interface iface); @JsonProperty(PROP_HOSTNAME) @Nonnull String getHostname(); @JsonProperty(PROP_INTERFACE) @Nonnull String getInterface(); @Override String toString(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override int compareTo(NodeInterfacePair other);  }