@Test public void testEquals() { Builder builder = OspfNeighborConfig.builder() .setArea(1L) .setHostname("host") .setVrfName("vrf") .setInterfaceName("Ethernet0") .setIp(Ip.parse("1.1.1.1")); new EqualsTester() .addEqualityGroup(builder.build(), builder.build()) .addEqualityGroup(builder.setArea(2L).build()) .addEqualityGroup(builder.setInterfaceName("Ethernet11").build()) .addEqualityGroup(builder.setIp(Ip.parse("2.2.2.2"))) .addEqualityGroup(builder.setPassive(true).build()) .addEqualityGroup(builder.setHostname("otherHost").build()) .addEqualityGroup(builder.setVrfName("otherVRF").build()) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof OspfNeighborConfig)) { return false; } OspfNeighborConfig other = (OspfNeighborConfig) o; return _area == other._area && _isPassive == other._isPassive && Objects.equals(_interfaceName, other._interfaceName) && Objects.equals(_ip, other._ip) && Objects.equals(_hostname, other._hostname) && Objects.equals(_vrfName, other._vrfName); }
OspfNeighborConfig implements Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof OspfNeighborConfig)) { return false; } OspfNeighborConfig other = (OspfNeighborConfig) o; return _area == other._area && _isPassive == other._isPassive && Objects.equals(_interfaceName, other._interfaceName) && Objects.equals(_ip, other._ip) && Objects.equals(_hostname, other._hostname) && Objects.equals(_vrfName, other._vrfName); } }
OspfNeighborConfig implements Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof OspfNeighborConfig)) { return false; } OspfNeighborConfig other = (OspfNeighborConfig) o; return _area == other._area && _isPassive == other._isPassive && Objects.equals(_interfaceName, other._interfaceName) && Objects.equals(_ip, other._ip) && Objects.equals(_hostname, other._hostname) && Objects.equals(_vrfName, other._vrfName); } private  OspfNeighborConfig(
      long area, String interfaceName, boolean isPassive, String hostname, String vrfName, Ip ip); }
OspfNeighborConfig implements Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof OspfNeighborConfig)) { return false; } OspfNeighborConfig other = (OspfNeighborConfig) o; return _area == other._area && _isPassive == other._isPassive && Objects.equals(_interfaceName, other._interfaceName) && Objects.equals(_ip, other._ip) && Objects.equals(_hostname, other._hostname) && Objects.equals(_vrfName, other._vrfName); } 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 { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof OspfNeighborConfig)) { return false; } OspfNeighborConfig other = (OspfNeighborConfig) o; return _area == other._area && _isPassive == other._isPassive && Objects.equals(_interfaceName, other._interfaceName) && Objects.equals(_ip, other._ip) && Objects.equals(_hostname, other._hostname) && Objects.equals(_vrfName, other._vrfName); } 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();  }