Class UnambiguousExactPolymerComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.interactor.PolymerComparator
-
- psidev.psi.mi.jami.utils.comparator.interactor.UnambiguousExactPolymerComparator
-
- All Implemented Interfaces:
Comparator<Polymer>
public class UnambiguousExactPolymerComparator extends PolymerComparator
Unambiguous exact polymer comparator. It will first use UnambiguousExactInteractorBaseComparator to compare the basic interactor properties If the basic interactor properties are the same, it will look at sequence/organism.- Since:
21/05/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousExactPolymerComparator()
Creates a new UnambiguousExactPolymerComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(Polymer polymer1, Polymer polymer2)
Use UnambiguousPolymerComparator to know if two polymers are equals.int
compare(Polymer polymer1, Polymer polymer2)
It will first use DefaultExactInteractorBaseComparator to compare the basic interactor properties If the basic interactor properties are the same, it will look at sequence/organism.UnambiguousExactInteractorBaseComparator
getInteractorComparator()
Getter for the fieldinteractorComparator
.-
Methods inherited from class psidev.psi.mi.jami.utils.comparator.interactor.PolymerComparator
getOrganismComparator
-
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
-
compare
public int compare(Polymer polymer1, Polymer polymer2)
Description copied from class:PolymerComparator
It will first use DefaultExactInteractorBaseComparator to compare the basic interactor properties If the basic interactor properties are the same, it will look at sequence/organism.- Specified by:
compare
in interfaceComparator<Polymer>
- Overrides:
compare
in classPolymerComparator
- Parameters:
polymer1
- aPolymer
object.polymer2
- aPolymer
object.- Returns:
- a int.
-
getInteractorComparator
public UnambiguousExactInteractorBaseComparator getInteractorComparator()
Getter for the field
interactorComparator
.- Overrides:
getInteractorComparator
in classPolymerComparator
- Returns:
- a
Comparator
object.
-
-