All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.molgenis.api.identities.AutoValue_UserResponse Maven / Gradle / Ivy

There is a newer version: 8.4.5
Show newest version

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;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy