org.molgenis.api.identities.AutoValue_AddGroupMemberCommand Maven / Gradle / Ivy
package org.molgenis.api.identities;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_AddGroupMemberCommand extends AddGroupMemberCommand {
private final String username;
private final String roleName;
AutoValue_AddGroupMemberCommand(
String username,
String roleName) {
if (username == null) {
throw new NullPointerException("Null username");
}
this.username = username;
if (roleName == null) {
throw new NullPointerException("Null roleName");
}
this.roleName = roleName;
}
@Override
public String getUsername() {
return username;
}
@Override
public String getRoleName() {
return roleName;
}
@Override
public String toString() {
return "AddGroupMemberCommand{"
+ "username=" + username + ", "
+ "roleName=" + roleName
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof AddGroupMemberCommand) {
AddGroupMemberCommand that = (AddGroupMemberCommand) o;
return (this.username.equals(that.getUsername()))
&& (this.roleName.equals(that.getRoleName()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.username.hashCode();
h *= 1000003;
h ^= this.roleName.hashCode();
return h;
}
}