@Test public void testEquals() { VirtualAddress obj = _builder.build(); new EqualsTester() .addEqualityGroup(obj, obj, _builder.build()) .addEqualityGroup(_builder.setAddress(null).build()) .addEqualityGroup(_builder.setAddress6(null).build()) .addEqualityGroup(_builder.setArpDisabled(null).build()) .addEqualityGroup(_builder.setIcmpEchoDisabled(null).build()) .addEqualityGroup(_builder.setMask(null).build()) .addEqualityGroup(_builder.setMask6(null).build()) .addEqualityGroup(_builder.setName("n2").build()) .addEqualityGroup(_builder.setRouteAdvertisementMode(null).build()) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof VirtualAddress)) { return false; } VirtualAddress rhs = (VirtualAddress) obj; return Objects.equals(_address, rhs._address) && Objects.equals(_address6, rhs._address6) && Objects.equals(_arpDisabled, rhs._arpDisabled) && Objects.equals(_icmpEchoDisabled, rhs._icmpEchoDisabled) && Objects.equals(_mask, rhs._mask) && Objects.equals(_mask6, rhs._mask6) && _name.equals(rhs._name) && Objects.equals(_routeAdvertisementMode, rhs._routeAdvertisementMode); }
VirtualAddress implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof VirtualAddress)) { return false; } VirtualAddress rhs = (VirtualAddress) obj; return Objects.equals(_address, rhs._address) && Objects.equals(_address6, rhs._address6) && Objects.equals(_arpDisabled, rhs._arpDisabled) && Objects.equals(_icmpEchoDisabled, rhs._icmpEchoDisabled) && Objects.equals(_mask, rhs._mask) && Objects.equals(_mask6, rhs._mask6) && _name.equals(rhs._name) && Objects.equals(_routeAdvertisementMode, rhs._routeAdvertisementMode); } }
VirtualAddress implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof VirtualAddress)) { return false; } VirtualAddress rhs = (VirtualAddress) obj; return Objects.equals(_address, rhs._address) && Objects.equals(_address6, rhs._address6) && Objects.equals(_arpDisabled, rhs._arpDisabled) && Objects.equals(_icmpEchoDisabled, rhs._icmpEchoDisabled) && Objects.equals(_mask, rhs._mask) && Objects.equals(_mask6, rhs._mask6) && _name.equals(rhs._name) && Objects.equals(_routeAdvertisementMode, rhs._routeAdvertisementMode); } private  VirtualAddress(
      @Nullable Ip address,
      @Nullable Ip6 address6,
      @Nullable Boolean arpDisabled,
      @Nullable Boolean icmpEchoDisabled,
      @Nullable Ip mask,
      @Nullable Ip6 mask6,
      String name,
      @Nullable RouteAdvertisementMode routeAdvertisementMode); }
VirtualAddress implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof VirtualAddress)) { return false; } VirtualAddress rhs = (VirtualAddress) obj; return Objects.equals(_address, rhs._address) && Objects.equals(_address6, rhs._address6) && Objects.equals(_arpDisabled, rhs._arpDisabled) && Objects.equals(_icmpEchoDisabled, rhs._icmpEchoDisabled) && Objects.equals(_mask, rhs._mask) && Objects.equals(_mask6, rhs._mask6) && _name.equals(rhs._name) && Objects.equals(_routeAdvertisementMode, rhs._routeAdvertisementMode); } private  VirtualAddress(
      @Nullable Ip address,
      @Nullable Ip6 address6,
      @Nullable Boolean arpDisabled,
      @Nullable Boolean icmpEchoDisabled,
      @Nullable Ip mask,
      @Nullable Ip6 mask6,
      String name,
      @Nullable RouteAdvertisementMode routeAdvertisementMode); static @Nonnull Builder builder(); @Nullable Ip getAddress(); @Nullable Ip6 getAddress6(); @Nullable Boolean getArpDisabled(); @Nullable Boolean getIcmpEchoDisabled(); @Nullable Ip getMask(); @Nullable Ip6 getMask6(); @Nonnull String getName(); @Nullable RouteAdvertisementMode getRouteAdvertisementMode(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); }
VirtualAddress implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof VirtualAddress)) { return false; } VirtualAddress rhs = (VirtualAddress) obj; return Objects.equals(_address, rhs._address) && Objects.equals(_address6, rhs._address6) && Objects.equals(_arpDisabled, rhs._arpDisabled) && Objects.equals(_icmpEchoDisabled, rhs._icmpEchoDisabled) && Objects.equals(_mask, rhs._mask) && Objects.equals(_mask6, rhs._mask6) && _name.equals(rhs._name) && Objects.equals(_routeAdvertisementMode, rhs._routeAdvertisementMode); } private  VirtualAddress(
      @Nullable Ip address,
      @Nullable Ip6 address6,
      @Nullable Boolean arpDisabled,
      @Nullable Boolean icmpEchoDisabled,
      @Nullable Ip mask,
      @Nullable Ip6 mask6,
      String name,
      @Nullable RouteAdvertisementMode routeAdvertisementMode); static @Nonnull Builder builder(); @Nullable Ip getAddress(); @Nullable Ip6 getAddress6(); @Nullable Boolean getArpDisabled(); @Nullable Boolean getIcmpEchoDisabled(); @Nullable Ip getMask(); @Nullable Ip6 getMask6(); @Nonnull String getName(); @Nullable RouteAdvertisementMode getRouteAdvertisementMode(); @Override boolean equals(@Nullable Object obj); @Override int hashCode();  }