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