@Test public void testEquals() { Builder builder = EigrpNeighborConfig.builder() .setAsn(2L) .setExportPolicy("policy") .setHostname("host") .setVrfName("vrf") .setInterfaceName("Ethernet0") .setIp(Ip.parse("1.1.1.1")); new EqualsTester() .addEqualityGroup(builder.build(), builder.build()) .addEqualityGroup(builder.setAsn(1L).build()) .addEqualityGroup(builder.setExportPolicy("policy_new").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 EigrpNeighborConfig)) { return false; } EigrpNeighborConfig other = (EigrpNeighborConfig) o; return _asn == other._asn && Objects.equals(_exportPolicy, other._exportPolicy) && Objects.equals(_hostname, other._hostname) && Objects.equals(_interfaceName, other._interfaceName) && Objects.equals(_ip, other._ip) && _isPassive == other._isPassive && Objects.equals(_vrfName, other._vrfName); }
EigrpNeighborConfig implements Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof EigrpNeighborConfig)) { return false; } EigrpNeighborConfig other = (EigrpNeighborConfig) o; return _asn == other._asn && Objects.equals(_exportPolicy, other._exportPolicy) && Objects.equals(_hostname, other._hostname) && Objects.equals(_interfaceName, other._interfaceName) && Objects.equals(_ip, other._ip) && _isPassive == other._isPassive && Objects.equals(_vrfName, other._vrfName); } }
EigrpNeighborConfig implements Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof EigrpNeighborConfig)) { return false; } EigrpNeighborConfig other = (EigrpNeighborConfig) o; return _asn == other._asn && Objects.equals(_exportPolicy, other._exportPolicy) && Objects.equals(_hostname, other._hostname) && Objects.equals(_interfaceName, other._interfaceName) && Objects.equals(_ip, other._ip) && _isPassive == other._isPassive && Objects.equals(_vrfName, other._vrfName); } private  EigrpNeighborConfig(
      long asn,
      String exportPolicy,
      String interfaceName,
      boolean isPassive,
      String hostname,
      String vrfName,
      Ip ip); }
EigrpNeighborConfig implements Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof EigrpNeighborConfig)) { return false; } EigrpNeighborConfig other = (EigrpNeighborConfig) o; return _asn == other._asn && Objects.equals(_exportPolicy, other._exportPolicy) && Objects.equals(_hostname, other._hostname) && Objects.equals(_interfaceName, other._interfaceName) && Objects.equals(_ip, other._ip) && _isPassive == other._isPassive && Objects.equals(_vrfName, other._vrfName); } private  EigrpNeighborConfig(
      long asn,
      String exportPolicy,
      String interfaceName,
      boolean isPassive,
      String hostname,
      String vrfName,
      Ip ip); @JsonProperty(PROP_ASN) long getAsn(); @Nonnull @JsonProperty(PROP_EXPORT_POLICY) String getExportPolicy(); @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(); @JsonIgnore EigrpNeighborConfigId getId(); static Builder builder(); @Override boolean equals(Object o); @Override int hashCode(); }
EigrpNeighborConfig implements Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof EigrpNeighborConfig)) { return false; } EigrpNeighborConfig other = (EigrpNeighborConfig) o; return _asn == other._asn && Objects.equals(_exportPolicy, other._exportPolicy) && Objects.equals(_hostname, other._hostname) && Objects.equals(_interfaceName, other._interfaceName) && Objects.equals(_ip, other._ip) && _isPassive == other._isPassive && Objects.equals(_vrfName, other._vrfName); } private  EigrpNeighborConfig(
      long asn,
      String exportPolicy,
      String interfaceName,
      boolean isPassive,
      String hostname,
      String vrfName,
      Ip ip); @JsonProperty(PROP_ASN) long getAsn(); @Nonnull @JsonProperty(PROP_EXPORT_POLICY) String getExportPolicy(); @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(); @JsonIgnore EigrpNeighborConfigId getId(); static Builder builder(); @Override boolean equals(Object o); @Override int hashCode();  }