Class UnambiguousGeneComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.interactor.GeneComparator
-
- psidev.psi.mi.jami.utils.comparator.interactor.UnambiguousGeneComparator
-
- All Implemented Interfaces:
Comparator<Gene>
public class UnambiguousGeneComparator extends GeneComparator
Unambiguous gene comparator. It will first use UnambiguousInteractorBaseComparator to compare the basic interactor properties If the basic interactor properties are the same, It will look at ensembl identifier (the interactor with non null ensembl identifier will always come first). If the ensembl identifiers are not set, it will look at the ensemblGenome identifiers (the interactor with non null ensembl genome identifier will always come first). If the ensemblGemome identifiers are not set, it will look at the entrez/gene id (the interactor with non null entrez/gene id will always come first). If the entrez/gene ids are not set, it will look at the refseq identifiers (the interactor with non null refseq identifier will always come first).- Since:
15/01/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousGeneComparator()
Creates a new UnambiguousGeneComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(Gene gene1, Gene gene2)
Use UnambiguousGeneComparator to know if two genes are equals.UnambiguousInteractorBaseComparator
getInteractorComparator()
getInteractorComparator-
Methods inherited from class psidev.psi.mi.jami.utils.comparator.interactor.GeneComparator
compare
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
getInteractorComparator
public UnambiguousInteractorBaseComparator getInteractorComparator()
getInteractorComparator
- Overrides:
getInteractorComparator
in classGeneComparator
- Returns:
- a
UnambiguousInteractorBaseComparator
object.
-
-