@Test public void testEquals() { EigrpNeighborConfigId ei = new EigrpNeighborConfigId(1L, "h", "i", "v"); new EqualsTester() .addEqualityGroup(ei, ei, new EigrpNeighborConfigId(1L, "h", "i", "v")) .addEqualityGroup(new EigrpNeighborConfigId(2L, "h1", "i", "v")) .addEqualityGroup(new EigrpNeighborConfigId(3L, "h", "i1", "v")) .addEqualityGroup(new EigrpNeighborConfigId(4L, "h", "i", "v1")) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof EigrpNeighborConfigId)) { return false; } EigrpNeighborConfigId rhs = (EigrpNeighborConfigId) o; return _asn == rhs._asn && _hostname.equals(rhs._hostname) && _interfaceName.equals(rhs._interfaceName) && _vrfName.equals(rhs._vrfName); }
EigrpNeighborConfigId implements Serializable, Comparable<EigrpNeighborConfigId> { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof EigrpNeighborConfigId)) { return false; } EigrpNeighborConfigId rhs = (EigrpNeighborConfigId) o; return _asn == rhs._asn && _hostname.equals(rhs._hostname) && _interfaceName.equals(rhs._interfaceName) && _vrfName.equals(rhs._vrfName); } }
EigrpNeighborConfigId implements Serializable, Comparable<EigrpNeighborConfigId> { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof EigrpNeighborConfigId)) { return false; } EigrpNeighborConfigId rhs = (EigrpNeighborConfigId) o; return _asn == rhs._asn && _hostname.equals(rhs._hostname) && _interfaceName.equals(rhs._interfaceName) && _vrfName.equals(rhs._vrfName); } EigrpNeighborConfigId(long asn, String hostname, String interfaceName, String vrfName);  EigrpNeighborConfigId(long asn, String hostname, Interface iface); }
EigrpNeighborConfigId implements Serializable, Comparable<EigrpNeighborConfigId> { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof EigrpNeighborConfigId)) { return false; } EigrpNeighborConfigId rhs = (EigrpNeighborConfigId) o; return _asn == rhs._asn && _hostname.equals(rhs._hostname) && _interfaceName.equals(rhs._interfaceName) && _vrfName.equals(rhs._vrfName); } EigrpNeighborConfigId(long asn, String hostname, String interfaceName, String vrfName);  EigrpNeighborConfigId(long asn, String hostname, Interface iface); @Override int compareTo(EigrpNeighborConfigId o); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @JsonProperty(PROP_ASN) long getAsn(); @Nonnull @JsonProperty(PROP_HOSTNAME) String getHostname(); @Nonnull @JsonProperty(PROP_INTERFACE) String getInterfaceName(); @Nonnull @JsonProperty(PROP_VRF) String getVrf(); @Nonnull @JsonIgnore Interface getInterface(NetworkConfigurations nc); @Nonnull @JsonIgnore NodeInterfacePair getNodeInterfacePair(); @Nonnull @JsonIgnore EigrpInterfaceSettings getInterfaceSettings(NetworkConfigurations nc); @Override String toString(); }
EigrpNeighborConfigId implements Serializable, Comparable<EigrpNeighborConfigId> { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof EigrpNeighborConfigId)) { return false; } EigrpNeighborConfigId rhs = (EigrpNeighborConfigId) o; return _asn == rhs._asn && _hostname.equals(rhs._hostname) && _interfaceName.equals(rhs._interfaceName) && _vrfName.equals(rhs._vrfName); } EigrpNeighborConfigId(long asn, String hostname, String interfaceName, String vrfName);  EigrpNeighborConfigId(long asn, String hostname, Interface iface); @Override int compareTo(EigrpNeighborConfigId o); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @JsonProperty(PROP_ASN) long getAsn(); @Nonnull @JsonProperty(PROP_HOSTNAME) String getHostname(); @Nonnull @JsonProperty(PROP_INTERFACE) String getInterfaceName(); @Nonnull @JsonProperty(PROP_VRF) String getVrf(); @Nonnull @JsonIgnore Interface getInterface(NetworkConfigurations nc); @Nonnull @JsonIgnore NodeInterfacePair getNodeInterfacePair(); @Nonnull @JsonIgnore EigrpInterfaceSettings getInterfaceSettings(NetworkConfigurations nc); @Override String toString();  }