@Test public void testEquals() { DeviceGroup obj = _builder.build(); new EqualsTester() .addEqualityGroup(obj, obj, _builder.build()) .addEqualityGroup(_builder.setAutoSync(null).build()) .addEqualityGroup(_builder.setDevices(ImmutableMap.of()).build()) .addEqualityGroup(_builder.setHidden(null).build()) .addEqualityGroup(_builder.setName("n2").build()) .addEqualityGroup(_builder.setNetworkFailover(null).build()) .addEqualityGroup(_builder.setType(null).build()) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof DeviceGroup)) { return false; } DeviceGroup rhs = (DeviceGroup) obj; return Objects.equals(_autoSync, rhs._autoSync) && _devices.equals(rhs._devices) && Objects.equals(_hidden, rhs._hidden) && _name.equals(rhs._name) && Objects.equals(_networkFailover, rhs._networkFailover) && Objects.equals(_type, rhs._type); }
DeviceGroup implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof DeviceGroup)) { return false; } DeviceGroup rhs = (DeviceGroup) obj; return Objects.equals(_autoSync, rhs._autoSync) && _devices.equals(rhs._devices) && Objects.equals(_hidden, rhs._hidden) && _name.equals(rhs._name) && Objects.equals(_networkFailover, rhs._networkFailover) && Objects.equals(_type, rhs._type); } }
DeviceGroup implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof DeviceGroup)) { return false; } DeviceGroup rhs = (DeviceGroup) obj; return Objects.equals(_autoSync, rhs._autoSync) && _devices.equals(rhs._devices) && Objects.equals(_hidden, rhs._hidden) && _name.equals(rhs._name) && Objects.equals(_networkFailover, rhs._networkFailover) && Objects.equals(_type, rhs._type); } private  DeviceGroup(
      @Nullable Boolean autoSync,
      Map<String, DeviceGroupDevice> devices,
      @Nullable Boolean hidden,
      String name,
      @Nullable Boolean networkFailover,
      @Nullable DeviceGroupType type); }
DeviceGroup implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof DeviceGroup)) { return false; } DeviceGroup rhs = (DeviceGroup) obj; return Objects.equals(_autoSync, rhs._autoSync) && _devices.equals(rhs._devices) && Objects.equals(_hidden, rhs._hidden) && _name.equals(rhs._name) && Objects.equals(_networkFailover, rhs._networkFailover) && Objects.equals(_type, rhs._type); } private  DeviceGroup(
      @Nullable Boolean autoSync,
      Map<String, DeviceGroupDevice> devices,
      @Nullable Boolean hidden,
      String name,
      @Nullable Boolean networkFailover,
      @Nullable DeviceGroupType type); static @Nonnull Builder builder(); @Nullable Boolean getAutoSync(); @Nonnull Map<String, DeviceGroupDevice> getDevices(); @Nullable Boolean getHidden(); @Nonnull String getName(); @Nullable Boolean getNetworkFailover(); @Nullable DeviceGroupType getType(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); }
DeviceGroup implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof DeviceGroup)) { return false; } DeviceGroup rhs = (DeviceGroup) obj; return Objects.equals(_autoSync, rhs._autoSync) && _devices.equals(rhs._devices) && Objects.equals(_hidden, rhs._hidden) && _name.equals(rhs._name) && Objects.equals(_networkFailover, rhs._networkFailover) && Objects.equals(_type, rhs._type); } private  DeviceGroup(
      @Nullable Boolean autoSync,
      Map<String, DeviceGroupDevice> devices,
      @Nullable Boolean hidden,
      String name,
      @Nullable Boolean networkFailover,
      @Nullable DeviceGroupType type); static @Nonnull Builder builder(); @Nullable Boolean getAutoSync(); @Nonnull Map<String, DeviceGroupDevice> getDevices(); @Nullable Boolean getHidden(); @Nonnull String getName(); @Nullable Boolean getNetworkFailover(); @Nullable DeviceGroupType getType(); @Override boolean equals(@Nullable Object obj); @Override int hashCode();  }