@Test public void testEquals() { new EqualsTester() .addEqualityGroup( new OspfNeighborConfigId( "h", "v", "p", "i", ConcreteInterfaceAddress.parse("192.0.2.0/31")), new OspfNeighborConfigId( "h", "v", "p", "i", ConcreteInterfaceAddress.parse("192.0.2.0/31"))) .addEqualityGroup( new OspfNeighborConfigId( "h2", "v", "p", "i", ConcreteInterfaceAddress.parse("192.0.2.0/31"))) .addEqualityGroup( new OspfNeighborConfigId( "h", "v2", "p", "i", ConcreteInterfaceAddress.parse("192.0.2.0/31"))) .addEqualityGroup( new OspfNeighborConfigId( "h", "v", "p2", "i", ConcreteInterfaceAddress.parse("192.0.2.0/31"))) .addEqualityGroup( new OspfNeighborConfigId( "h", "v", "p", "i2", ConcreteInterfaceAddress.parse("192.0.2.0/31"))) .addEqualityGroup( new OspfNeighborConfigId( "h", "v", "p", "i2", ConcreteInterfaceAddress.parse("192.0.2.2/31"))) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof OspfNeighborConfigId)) { return false; } OspfNeighborConfigId other = (OspfNeighborConfigId) o; return _hostname.equals(other._hostname) && _vrfName.equals(other._vrfName) && _procName.equals(other._procName) && _interfaceName.equals(other._interfaceName) && _address.equals(other._address); }
OspfNeighborConfigId implements Serializable { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof OspfNeighborConfigId)) { return false; } OspfNeighborConfigId other = (OspfNeighborConfigId) o; return _hostname.equals(other._hostname) && _vrfName.equals(other._vrfName) && _procName.equals(other._procName) && _interfaceName.equals(other._interfaceName) && _address.equals(other._address); } }
OspfNeighborConfigId implements Serializable { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof OspfNeighborConfigId)) { return false; } OspfNeighborConfigId other = (OspfNeighborConfigId) o; return _hostname.equals(other._hostname) && _vrfName.equals(other._vrfName) && _procName.equals(other._procName) && _interfaceName.equals(other._interfaceName) && _address.equals(other._address); } OspfNeighborConfigId(
      String hostname,
      String vrfName,
      String procName,
      String interfaceName,
      ConcreteInterfaceAddress address); }
OspfNeighborConfigId implements Serializable { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof OspfNeighborConfigId)) { return false; } OspfNeighborConfigId other = (OspfNeighborConfigId) o; return _hostname.equals(other._hostname) && _vrfName.equals(other._vrfName) && _procName.equals(other._procName) && _interfaceName.equals(other._interfaceName) && _address.equals(other._address); } OspfNeighborConfigId(
      String hostname,
      String vrfName,
      String procName,
      String interfaceName,
      ConcreteInterfaceAddress address); @Nonnull @JsonProperty(PROP_HOSTNAME) String getHostname(); @Nonnull @JsonProperty(PROP_VRF) String getVrfName(); @Nonnull @JsonProperty(PROP_PROCESS) String getProcName(); @Nonnull @JsonProperty(PROP_INTERFACE) String getInterfaceName(); @Nonnull @JsonProperty(PROP_ADDRESS) ConcreteInterfaceAddress getAddress(); @Nonnull @JsonIgnore NodeInterfacePair getNodeInterfacePair(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString(); }
OspfNeighborConfigId implements Serializable { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof OspfNeighborConfigId)) { return false; } OspfNeighborConfigId other = (OspfNeighborConfigId) o; return _hostname.equals(other._hostname) && _vrfName.equals(other._vrfName) && _procName.equals(other._procName) && _interfaceName.equals(other._interfaceName) && _address.equals(other._address); } OspfNeighborConfigId(
      String hostname,
      String vrfName,
      String procName,
      String interfaceName,
      ConcreteInterfaceAddress address); @Nonnull @JsonProperty(PROP_HOSTNAME) String getHostname(); @Nonnull @JsonProperty(PROP_VRF) String getVrfName(); @Nonnull @JsonProperty(PROP_PROCESS) String getProcName(); @Nonnull @JsonProperty(PROP_INTERFACE) String getInterfaceName(); @Nonnull @JsonProperty(PROP_ADDRESS) ConcreteInterfaceAddress getAddress(); @Nonnull @JsonIgnore NodeInterfacePair getNodeInterfacePair(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString();  }