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