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

org.molgenis.api.identities.AutoValue_RoleResponse 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_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;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy