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