@Test public void testEquals() { UnicastAddress obj = _builder.build(); new EqualsTester() .addEqualityGroup(obj, obj, _builder.build()) .addEqualityGroup(_builder.setEffectiveIp(null).build()) .addEqualityGroup(_builder.setEffectivePort(1).build()) .addEqualityGroup(_builder.setIp(null).build()) .addEqualityGroup(_builder.setPort(null).build()) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof UnicastAddress)) { return false; } UnicastAddress rhs = (UnicastAddress) obj; return Objects.equals(_effectiveIp, rhs._effectiveIp) && _effectivePort == rhs._effectivePort && Objects.equals(_ip, rhs._ip) && Objects.equals(_port, rhs._port); }
UnicastAddress implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof UnicastAddress)) { return false; } UnicastAddress rhs = (UnicastAddress) obj; return Objects.equals(_effectiveIp, rhs._effectiveIp) && _effectivePort == rhs._effectivePort && Objects.equals(_ip, rhs._ip) && Objects.equals(_port, rhs._port); } }
UnicastAddress implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof UnicastAddress)) { return false; } UnicastAddress rhs = (UnicastAddress) obj; return Objects.equals(_effectiveIp, rhs._effectiveIp) && _effectivePort == rhs._effectivePort && Objects.equals(_ip, rhs._ip) && Objects.equals(_port, rhs._port); } private  UnicastAddress(
      @Nullable UnicastAddressIp effectiveIp,
      int effectivePort,
      @Nullable UnicastAddressIp ip,
      @Nullable Integer port); }
UnicastAddress implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof UnicastAddress)) { return false; } UnicastAddress rhs = (UnicastAddress) obj; return Objects.equals(_effectiveIp, rhs._effectiveIp) && _effectivePort == rhs._effectivePort && Objects.equals(_ip, rhs._ip) && Objects.equals(_port, rhs._port); } private  UnicastAddress(
      @Nullable UnicastAddressIp effectiveIp,
      int effectivePort,
      @Nullable UnicastAddressIp ip,
      @Nullable Integer port); static @Nonnull Builder builder(); @Nullable UnicastAddressIp getEffectiveIp(); int getEffectivePort(); @Nullable UnicastAddressIp getIp(); @Nullable Integer getPort(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); }
UnicastAddress implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof UnicastAddress)) { return false; } UnicastAddress rhs = (UnicastAddress) obj; return Objects.equals(_effectiveIp, rhs._effectiveIp) && _effectivePort == rhs._effectivePort && Objects.equals(_ip, rhs._ip) && Objects.equals(_port, rhs._port); } private  UnicastAddress(
      @Nullable UnicastAddressIp effectiveIp,
      int effectivePort,
      @Nullable UnicastAddressIp ip,
      @Nullable Integer port); static @Nonnull Builder builder(); @Nullable UnicastAddressIp getEffectiveIp(); int getEffectivePort(); @Nullable UnicastAddressIp getIp(); @Nullable Integer getPort(); @Override boolean equals(@Nullable Object obj); @Override int hashCode();  }