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 Constructor Description OntologySearchResult(T result, double score)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(OntologySearchResult<?> searchResult, OntologySearchResult<?> t1)
boolean
equals(Object obj)
T
getResult()
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 Detail
-
OntologySearchResult
public OntologySearchResult(T result, double score)
-
-
Method Detail
-
getResult
public T getResult()
-
getScore
public double getScore()
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfaceComparator<T extends OntologyResource>
- Overrides:
equals
in classObject
-
compare
public int compare(OntologySearchResult<?> searchResult, OntologySearchResult<?> t1)
- Specified by:
compare
in interfaceComparator<T extends OntologyResource>
-
-