Class UnambiguousNucleicAcidComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.interactor.NucleicAcidComparator
-
- psidev.psi.mi.jami.utils.comparator.interactor.UnambiguousNucleicAcidComparator
-
- All Implemented Interfaces:
Comparator<NucleicAcid>
public class UnambiguousNucleicAcidComparator extends NucleicAcidComparator
Unambiguous nucleic acids comparator. It will first use UnambiguousPolymerComparator to compare the basic interactor properties. If the basic polymer properties are the same, It will look for DDBJ/EMBL/Genbank identifier. If the DDBJ/EMBL/Genbank identifiers are identical, it will look at the Refseq identifiers.- Since:
15/01/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousNucleicAcidComparator()
Creates a new UnambiguousNucleicAcidComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(NucleicAcid nucleicAcid1, NucleicAcid nucleicAcid2)
Use UnambiguousNucleicAcidComparator to know if two nucleic acids are equals.UnambiguousPolymerComparator
getInteractorComparator()
getInteractorComparator-
Methods inherited from class psidev.psi.mi.jami.utils.comparator.interactor.NucleicAcidComparator
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 UnambiguousPolymerComparator getInteractorComparator()
getInteractorComparator
- Overrides:
getInteractorComparator
in classNucleicAcidComparator
- Returns:
- a
UnambiguousPolymerComparator
object.
-
areEquals
public static boolean areEquals(NucleicAcid nucleicAcid1, NucleicAcid nucleicAcid2)
Use UnambiguousNucleicAcidComparator to know if two nucleic acids are equals.- Parameters:
nucleicAcid1
- aNucleicAcid
object.nucleicAcid2
- aNucleicAcid
object.- Returns:
- true if the two nucleic acids are equal
-
-