Class MoleculeEffectorComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.cooperativity.MoleculeEffectorComparator
-
- All Implemented Interfaces:
Comparator<MoleculeEffector>
- Direct Known Subclasses:
UnambiguousExactMoleculeEffectorComparator
,UnambiguousMoleculeEffectorComparator
public class MoleculeEffectorComparator extends Object implements Comparator<MoleculeEffector>
Basic Comparator for MoleculeEffector. It is using a ModelledEntityComparator to compare the molecule- Since:
30/05/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description MoleculeEffectorComparator(ModelledEntityComparator participantComparator)
Constructor for MoleculeEffectorComparator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(MoleculeEffector moleculeEffector1, MoleculeEffector moleculeEffector2)
It is using a ModelledEntityComparator to compare the moleculeModelledEntityComparator
getParticipantComparator()
Getter for the fieldparticipantComparator
.-
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
-
MoleculeEffectorComparator
public MoleculeEffectorComparator(ModelledEntityComparator participantComparator)
Constructor for MoleculeEffectorComparator.
- Parameters:
participantComparator
- aModelledEntityComparator
object.
-
-
Method Detail
-
getParticipantComparator
public ModelledEntityComparator getParticipantComparator()
Getter for the field
participantComparator
.- Returns:
- a
ModelledEntityComparator
object.
-
compare
public int compare(MoleculeEffector moleculeEffector1, MoleculeEffector moleculeEffector2)
It is using a ModelledEntityComparator to compare the molecule- Specified by:
compare
in interfaceComparator<MoleculeEffector>
- Parameters:
moleculeEffector1
- aMoleculeEffector
object.moleculeEffector2
- aMoleculeEffector
object.- Returns:
- a int.
-
-