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

org.molgenis.api.identities.AutoValue_GroupResponse 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_GroupResponse extends GroupResponse {

  private final String name;
  private final String label;

  AutoValue_GroupResponse(
      String name,
      String label) {
    if (name == null) {
      throw new NullPointerException("Null name");
    }
    this.name = name;
    if (label == null) {
      throw new NullPointerException("Null label");
    }
    this.label = label;
  }

  @Override
  public String getName() {
    return name;
  }

  @Override
  public String getLabel() {
    return label;
  }

  @Override
  public String toString() {
    return "GroupResponse{"
        + "name=" + name + ", "
        + "label=" + label
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof GroupResponse) {
      GroupResponse that = (GroupResponse) o;
      return (this.name.equals(that.getName()))
           && (this.label.equals(that.getLabel()));
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy