@Test public void testEquals() { InterfaceClagSettings.Builder builder = InterfaceClagSettings.builder(); InterfaceClagSettings c1 = builder.build(); new EqualsTester() .addEqualityGroup(new Object()) .addEqualityGroup(c1, c1, builder.build()) .addEqualityGroup(builder.setBackupIp(Ip.ZERO).build()) .addEqualityGroup(builder.build().toString()) .addEqualityGroup(builder.setBackupIpVrf("foo").build()) .addEqualityGroup(builder.build().toString()) .addEqualityGroup(builder.setPeerIp(Ip.ZERO).build()) .addEqualityGroup(builder.build().toString()) .addEqualityGroup(builder.setPriority(5).build()) .addEqualityGroup(builder.build().toString()) .addEqualityGroup(builder.setSysMac(MacAddress.of(5L)).build()) .addEqualityGroup(builder.build().toString()) .addEqualityGroup(builder.setPeerLinkLocal(true)) .testEquals(); }
@Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof InterfaceClagSettings)) { return false; } InterfaceClagSettings rhs = (InterfaceClagSettings) obj; return Objects.equals(_backupIp, rhs._backupIp) && Objects.equals(_backupIpVrf, rhs._backupIpVrf) && Objects.equals(_peerIp, rhs._peerIp) && _peerIpLinkLocal == rhs._peerIpLinkLocal && Objects.equals(_priority, rhs._priority) && Objects.equals(_sysMac, rhs._sysMac); }
InterfaceClagSettings implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof InterfaceClagSettings)) { return false; } InterfaceClagSettings rhs = (InterfaceClagSettings) obj; return Objects.equals(_backupIp, rhs._backupIp) && Objects.equals(_backupIpVrf, rhs._backupIpVrf) && Objects.equals(_peerIp, rhs._peerIp) && _peerIpLinkLocal == rhs._peerIpLinkLocal && Objects.equals(_priority, rhs._priority) && Objects.equals(_sysMac, rhs._sysMac); } }
InterfaceClagSettings implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof InterfaceClagSettings)) { return false; } InterfaceClagSettings rhs = (InterfaceClagSettings) obj; return Objects.equals(_backupIp, rhs._backupIp) && Objects.equals(_backupIpVrf, rhs._backupIpVrf) && Objects.equals(_peerIp, rhs._peerIp) && _peerIpLinkLocal == rhs._peerIpLinkLocal && Objects.equals(_priority, rhs._priority) && Objects.equals(_sysMac, rhs._sysMac); } @JsonCreator private  InterfaceClagSettings(
      @JsonProperty(PROP_BACKUP_IP) @Nullable Ip backupIp,
      @JsonProperty(PROP_BACKUP_IP_VRF) @Nullable String backupIpVrf,
      @JsonProperty(PROP_PEER_IP) @Nullable Ip peerIp,
      @JsonProperty(PROP_PEER_IP_LINK_LOCAL) boolean peerIpLinkLocal,
      @JsonProperty(PROP_PRIORITY) @Nullable Integer priority,
      @JsonProperty(PROP_SYS_MAC) @Nullable MacAddress sysMac); }
InterfaceClagSettings implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof InterfaceClagSettings)) { return false; } InterfaceClagSettings rhs = (InterfaceClagSettings) obj; return Objects.equals(_backupIp, rhs._backupIp) && Objects.equals(_backupIpVrf, rhs._backupIpVrf) && Objects.equals(_peerIp, rhs._peerIp) && _peerIpLinkLocal == rhs._peerIpLinkLocal && Objects.equals(_priority, rhs._priority) && Objects.equals(_sysMac, rhs._sysMac); } @JsonCreator private  InterfaceClagSettings(
      @JsonProperty(PROP_BACKUP_IP) @Nullable Ip backupIp,
      @JsonProperty(PROP_BACKUP_IP_VRF) @Nullable String backupIpVrf,
      @JsonProperty(PROP_PEER_IP) @Nullable Ip peerIp,
      @JsonProperty(PROP_PEER_IP_LINK_LOCAL) boolean peerIpLinkLocal,
      @JsonProperty(PROP_PRIORITY) @Nullable Integer priority,
      @JsonProperty(PROP_SYS_MAC) @Nullable MacAddress sysMac); static @Nonnull Builder builder(); @JsonProperty(PROP_BACKUP_IP) @Nullable Ip getBackupIp(); @JsonProperty(PROP_BACKUP_IP_VRF) @Nullable String getBackupIpVrf(); @JsonProperty(PROP_PEER_IP) @Nullable Ip getPeerIp(); @JsonProperty(PROP_PEER_IP_LINK_LOCAL) boolean isPeerIpLinkLocal(); @JsonProperty(PROP_PRIORITY) @Nullable Integer getPriority(); @JsonProperty(PROP_SYS_MAC) @Nullable MacAddress getSysMac(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); @Override String toString(); }
InterfaceClagSettings implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof InterfaceClagSettings)) { return false; } InterfaceClagSettings rhs = (InterfaceClagSettings) obj; return Objects.equals(_backupIp, rhs._backupIp) && Objects.equals(_backupIpVrf, rhs._backupIpVrf) && Objects.equals(_peerIp, rhs._peerIp) && _peerIpLinkLocal == rhs._peerIpLinkLocal && Objects.equals(_priority, rhs._priority) && Objects.equals(_sysMac, rhs._sysMac); } @JsonCreator private  InterfaceClagSettings(
      @JsonProperty(PROP_BACKUP_IP) @Nullable Ip backupIp,
      @JsonProperty(PROP_BACKUP_IP_VRF) @Nullable String backupIpVrf,
      @JsonProperty(PROP_PEER_IP) @Nullable Ip peerIp,
      @JsonProperty(PROP_PEER_IP_LINK_LOCAL) boolean peerIpLinkLocal,
      @JsonProperty(PROP_PRIORITY) @Nullable Integer priority,
      @JsonProperty(PROP_SYS_MAC) @Nullable MacAddress sysMac); static @Nonnull Builder builder(); @JsonProperty(PROP_BACKUP_IP) @Nullable Ip getBackupIp(); @JsonProperty(PROP_BACKUP_IP_VRF) @Nullable String getBackupIpVrf(); @JsonProperty(PROP_PEER_IP) @Nullable Ip getPeerIp(); @JsonProperty(PROP_PEER_IP_LINK_LOCAL) boolean isPeerIpLinkLocal(); @JsonProperty(PROP_PRIORITY) @Nullable Integer getPriority(); @JsonProperty(PROP_SYS_MAC) @Nullable MacAddress getSysMac(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); @Override String toString();  }