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

org.molgenis.pathways.model.AutoValue_Pathway Maven / Gradle / Ivy

There is a newer version: 5.2.2
Show newest version

package org.molgenis.pathways.model;

import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
 final class AutoValue_Pathway extends Pathway {

  private final String id;
  private final String name;

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

  @Override
  public String getId() {
    return id;
  }

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

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

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy