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

org.molgenis.api.identities.AutoValue_AddGroupMemberCommand 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_AddGroupMemberCommand extends AddGroupMemberCommand {

  private final String username;
  private final String roleName;

  AutoValue_AddGroupMemberCommand(
      String username,
      String roleName) {
    if (username == null) {
      throw new NullPointerException("Null username");
    }
    this.username = username;
    if (roleName == null) {
      throw new NullPointerException("Null roleName");
    }
    this.roleName = roleName;
  }

  @Override
  public String getUsername() {
    return username;
  }

  @Override
  public String getRoleName() {
    return roleName;
  }

  @Override
  public String toString() {
    return "AddGroupMemberCommand{"
        + "username=" + username + ", "
        + "roleName=" + roleName
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof AddGroupMemberCommand) {
      AddGroupMemberCommand that = (AddGroupMemberCommand) o;
      return (this.username.equals(that.getUsername()))
           && (this.roleName.equals(that.getRoleName()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= this.username.hashCode();
    h *= 1000003;
    h ^= this.roleName.hashCode();
    return h;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy