@Test public void testEquals() { DeviceGroupDevice obj = _builder.build(); new EqualsTester() .addEqualityGroup(obj, obj, _builder.build()) .addEqualityGroup(_builder.setName("n2").build()) .addEqualityGroup(_builder.setSetSyncLeader(false).build()) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof DeviceGroupDevice)) { return false; } DeviceGroupDevice rhs = (DeviceGroupDevice) obj; return _name.equals(rhs._name) && _setSyncLeader == rhs._setSyncLeader; }
DeviceGroupDevice implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof DeviceGroupDevice)) { return false; } DeviceGroupDevice rhs = (DeviceGroupDevice) obj; return _name.equals(rhs._name) && _setSyncLeader == rhs._setSyncLeader; } }
DeviceGroupDevice implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof DeviceGroupDevice)) { return false; } DeviceGroupDevice rhs = (DeviceGroupDevice) obj; return _name.equals(rhs._name) && _setSyncLeader == rhs._setSyncLeader; } private  DeviceGroupDevice(String name, boolean setSyncLeader); }
DeviceGroupDevice implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof DeviceGroupDevice)) { return false; } DeviceGroupDevice rhs = (DeviceGroupDevice) obj; return _name.equals(rhs._name) && _setSyncLeader == rhs._setSyncLeader; } private  DeviceGroupDevice(String name, boolean setSyncLeader); static @Nonnull Builder builder(); @Nonnull String getName(); boolean getSetSyncLeader(); void setSetSyncLeader(boolean setSyncLeader); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); }
DeviceGroupDevice implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof DeviceGroupDevice)) { return false; } DeviceGroupDevice rhs = (DeviceGroupDevice) obj; return _name.equals(rhs._name) && _setSyncLeader == rhs._setSyncLeader; } private  DeviceGroupDevice(String name, boolean setSyncLeader); static @Nonnull Builder builder(); @Nonnull String getName(); boolean getSetSyncLeader(); void setSetSyncLeader(boolean setSyncLeader); @Override boolean equals(@Nullable Object obj); @Override int hashCode();  }