Package ubic.basecode.ontology.search
Class OntologySearchResult<T extends OntologyResource>
java.lang.Object
ubic.basecode.ontology.search.OntologySearchResult<T>
- All Implemented Interfaces:
Comparator<OntologySearchResult<?>>
public class OntologySearchResult<T extends OntologyResource>
extends Object
implements Comparator<OntologySearchResult<?>>
Represents a search result from an ontology.
- Author:
- poirigui
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
compare
(OntologySearchResult<?> searchResult, OntologySearchResult<?> t1) boolean
double
getScore()
int
hashCode()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
OntologySearchResult
-
-
Method Details
-
getResult
-
getScore
public double getScore() -
hashCode
public int hashCode() -
equals
- Specified by:
equals
in interfaceComparator<T extends OntologyResource>
- Overrides:
equals
in classObject
-
compare
- Specified by:
compare
in interfaceComparator<T extends OntologyResource>
-