Class UnambiguousExactInteractorComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.interactor.InteractorComparator
-
- psidev.psi.mi.jami.utils.comparator.interactor.UnambiguousExactInteractorComparator
-
- All Implemented Interfaces:
Comparator<Interactor>
public class UnambiguousExactInteractorComparator extends InteractorComparator
Unambiguous exact Interactor Comparator.Bioactive entities come first, then proteins, then genes, then nucleic acids, then complexes and finally InteractorPool. If two interactors are from the same Interactor interface, it will use a more specific Comparator : - Uses UnambiguousExactBioactiveEntityComparator for comparing BioactiveEntity objects. - Uses UnambiguousExactProteinComparator for comparing Protein objects. - Uses UnambiguousExactGeneComparator for comparing Gene objects. - Uses UnambiguousExactNucleicAcidComparator for comparing NucleicAcids objects. - Uses UnambiguousExactPolymerComparator for comparing Polymer objects - Uses UnambiguousExactComplexComparator for comparing complexes - Uses UnambiguousExactInteractorPoolComparator for comparing interactor candidates - use UnambiguousExactInteractorBaseComparator for comparing basic interactors that are not one of the above..
- Since:
17/01/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousExactInteractorComparator()
UnambiguousExactInteractorComparator(UnambiguousExactComplexComparator comparator)
Constructor for UnambiguousExactInteractorComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(Interactor interactor1, Interactor interactor2)
Use UnambiguousExactInteractorComparator to know if two interactors are equals.int
compare(Interactor interactor1, Interactor interactor2)
Bioactive entities come first, then proteins, then genes, then nucleic acids, then complexes and finally InteractorPool.UnambiguousExactBioactiveEntityComparator
getBioactiveEntityComparator()
Getter for the fieldbioactiveEntityComparator
.UnambiguousExactComplexComparator
getComplexComparator()
Getter for the fieldcomplexComparator
.UnambiguousExactGeneComparator
getGeneComparator()
Getter for the fieldgeneComparator
.UnambiguousExactInteractorBaseComparator
getInteractorBaseComparator()
Getter for the fieldinteractorBaseComparator
.UnambiguousExactNucleicAcidComparator
getNucleicAcidComparator()
Getter for the fieldnucleicAcidComparator
.UnambiguousExactPolymerComparator
getPolymerComparator()
Getter for the fieldpolymerComparator
.UnambiguousExactProteinComparator
getProteinComparator()
Getter for the fieldproteinComparator
.-
Methods inherited from class psidev.psi.mi.jami.utils.comparator.interactor.InteractorComparator
getInteractorCandidatesComparator
-
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
-
-
-
-
Constructor Detail
-
UnambiguousExactInteractorComparator
public UnambiguousExactInteractorComparator()
Creates a new UnambiguousExactInteractorComparator. - Uses UnambiguousExactBioactiveEntityComparator for comparing BioactiveEntity objects. - Uses UnambiguousExactProteinComparator for comparing Protein objects. - Uses UnambiguousExactGeneComparator for comparing Gene objects. - Uses UnambiguousExactNucleicAcidComparator for comparing NucleicAcids objects. - Uses UnambiguousExactPolymerComparator for comparing Polymer objects - Uses UnambiguousExactComplexComparator for comparing complexes - Uses UnambiguousExactInteractorPoolComparator for comparing interactor candidates - use UnambiguousExactInteractorBaseComparator for comparing basic interactors that are not one of the above..
-
UnambiguousExactInteractorComparator
public UnambiguousExactInteractorComparator(UnambiguousExactComplexComparator comparator)
Constructor for UnambiguousExactInteractorComparator.
- Parameters:
comparator
- aUnambiguousExactComplexComparator
object.
-
-
Method Detail
-
areEquals
public static boolean areEquals(Interactor interactor1, Interactor interactor2)
Use UnambiguousExactInteractorComparator to know if two interactors are equals.- Parameters:
interactor1
- aInteractor
object.interactor2
- aInteractor
object.- Returns:
- true if the two interactors are equal
-
getInteractorBaseComparator
public UnambiguousExactInteractorBaseComparator getInteractorBaseComparator()
Getter for the field
interactorBaseComparator
.- Overrides:
getInteractorBaseComparator
in classInteractorComparator
- Returns:
- a
Comparator
object.
-
getComplexComparator
public UnambiguousExactComplexComparator getComplexComparator()
Getter for the field
complexComparator
.- Overrides:
getComplexComparator
in classInteractorComparator
- Returns:
- a
Comparator
object.
-
getPolymerComparator
public UnambiguousExactPolymerComparator getPolymerComparator()
Getter for the field
polymerComparator
.- Overrides:
getPolymerComparator
in classInteractorComparator
- Returns:
- a
Comparator
object.
-
getBioactiveEntityComparator
public UnambiguousExactBioactiveEntityComparator getBioactiveEntityComparator()
Getter for the field
bioactiveEntityComparator
.- Overrides:
getBioactiveEntityComparator
in classInteractorComparator
- Returns:
- a
Comparator
object.
-
getGeneComparator
public UnambiguousExactGeneComparator getGeneComparator()
Getter for the field
geneComparator
.- Overrides:
getGeneComparator
in classInteractorComparator
- Returns:
- a
Comparator
object.
-
getNucleicAcidComparator
public UnambiguousExactNucleicAcidComparator getNucleicAcidComparator()
Getter for the field
nucleicAcidComparator
.- Overrides:
getNucleicAcidComparator
in classInteractorComparator
- Returns:
- a
Comparator
object.
-
getProteinComparator
public UnambiguousExactProteinComparator getProteinComparator()
Getter for the field
proteinComparator
.- Overrides:
getProteinComparator
in classInteractorComparator
- Returns:
- a
Comparator
object.
-
compare
public int compare(Interactor interactor1, Interactor interactor2)
Description copied from class:InteractorComparator
Bioactive entities come first, then proteins, then genes, then nucleic acids, then complexes and finally InteractorPool. If two interactors are from the same Interactor interface, it will use a more specific Comparator : - Uses AbstractBioactiveEntityComparator for comparing BioactiveEntity objects. - Uses AbstractProteinComparator for comparing Protein objects. - Uses AbstractGeneComparator for comparing Gene objects. - Uses AbstractNucleicAcidComparator for comparing NucleicAcids objects. - Uses InteractorPoolComparator for comparing interactor candidates - Uses polymerComparator for comparing Polymer objects. - use AbstractInteractorBaseComparator for comparing basic interactors that are not one of the above.- Specified by:
compare
in interfaceComparator<Interactor>
- Overrides:
compare
in classInteractorComparator
- Parameters:
interactor1
- aInteractor
object.interactor2
- aInteractor
object.- Returns:
- a int.
-
-