@Test public void testJsonSerialization() { OspfNeighborConfig c = OspfNeighborConfig.builder() .setArea(1L) .setHostname("host") .setIp(Ip.parse("1.1.1.1")) .setVrfName("vrf") .setInterfaceName("Ethernet0") .build(); assertThat(BatfishObjectMapper.clone(c, OspfNeighborConfig.class), equalTo(c)); }
public static Builder builder() { return new Builder(); }
OspfNeighborConfig implements Serializable { public static Builder builder() { return new Builder(); } }
OspfNeighborConfig implements Serializable { public static Builder builder() { return new Builder(); } private  OspfNeighborConfig(
      long area, String interfaceName, boolean isPassive, String hostname, String vrfName, Ip ip); }
OspfNeighborConfig implements Serializable { public static Builder builder() { return new Builder(); } private  OspfNeighborConfig(
      long area, String interfaceName, boolean isPassive, String hostname, String vrfName, Ip ip); @JsonProperty(PROP_AREA) long getArea(); @Nonnull @JsonProperty(PROP_INTERFACE) String getInterfaceName(); @Nonnull @JsonProperty(PROP_IP) Ip getIp(); @Nonnull @JsonProperty(PROP_HOSTNAME) String getHostname(); @Nonnull @JsonProperty(PROP_VRF) String getVrfName(); @JsonProperty(PROP_PASSIVE) boolean isPassive(); static Builder builder(); @Override boolean equals(Object o); @Override int hashCode(); }
OspfNeighborConfig implements Serializable { public static Builder builder() { return new Builder(); } private  OspfNeighborConfig(
      long area, String interfaceName, boolean isPassive, String hostname, String vrfName, Ip ip); @JsonProperty(PROP_AREA) long getArea(); @Nonnull @JsonProperty(PROP_INTERFACE) String getInterfaceName(); @Nonnull @JsonProperty(PROP_IP) Ip getIp(); @Nonnull @JsonProperty(PROP_HOSTNAME) String getHostname(); @Nonnull @JsonProperty(PROP_VRF) String getVrfName(); @JsonProperty(PROP_PASSIVE) boolean isPassive(); static Builder builder(); @Override boolean equals(Object o); @Override int hashCode();  }