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

org.molgenis.ontology.roc.OntologyWord Maven / Gradle / Ivy

Go to download

Plugin module containing SORTA (system for ontology-based re-coding and technical annotation) plugins.

There is a newer version: 8.4.5
Show newest version
package org.molgenis.ontology.roc;

public class OntologyWord {
  private final String ontologyIri;
  private final String word;

  public OntologyWord(String ontologyIri, String word) {
    this.ontologyIri = ontologyIri;
    this.word = word;
  }

  public String getOntologyIri() {
    return ontologyIri;
  }

  public String getWord() {
    return word;
  }

  @Override
  public int hashCode() {
    final int prime = 31;
    int result = 1;
    result = prime * result + ((ontologyIri == null) ? 0 : ontologyIri.hashCode());
    result = prime * result + ((word == null) ? 0 : word.hashCode());
    return result;
  }

  @Override
  public boolean equals(Object obj) {
    if (this == obj) return true;
    if (obj == null) return false;
    if (getClass() != obj.getClass()) return false;
    OntologyWord other = (OntologyWord) obj;
    if (ontologyIri == null) {
      if (other.ontologyIri != null) return false;
    } else if (!ontologyIri.equals(other.ontologyIri)) return false;
    if (word == null) {
      if (other.word != null) return false;
    } else if (!word.equals(other.word)) return false;
    return true;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy