Class CuratedModelledInteractionComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.interaction.ModelledInteractionComparator
-
- psidev.psi.mi.jami.utils.comparator.interaction.CuratedModelledInteractionComparator
-
- All Implemented Interfaces:
Comparator<ModelledInteraction>
- Direct Known Subclasses:
UnambiguousCuratedModelledInteractionComparator,UnambiguousExactCuratedModelledInteractionComparator
public class CuratedModelledInteractionComparator extends ModelledInteractionComparator
Basic CuratedModelledInteraction comparator. It will use aComparatorof typeInteractionto compare basic interaction properties. Then it will compare the modelledParticipants using CustomizableModelledParticipantComparator. Finally, it will compare the source of the modelledInteraction using AbstractCvTermComparator- Since:
31/05/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description CuratedModelledInteractionComparator(CustomizableModelledParticipantComparator participantComparator, Comparator<Interaction> interactionComparator, Comparator<CvTerm> sourceComparator)Constructor for CuratedModelledInteractionComparator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(ModelledInteraction modelledInteraction1, ModelledInteraction modelledInteraction2)It will use aComparatorof typeInteractionto compare basic interaction properties.Comparator<CvTerm>getSourceComparator()Getter for the fieldsourceComparator.-
Methods inherited from class psidev.psi.mi.jami.utils.comparator.interaction.ModelledInteractionComparator
getInteractionBaseComparator, getParticipantCollectionComparator
-
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
-
CuratedModelledInteractionComparator
public CuratedModelledInteractionComparator(CustomizableModelledParticipantComparator participantComparator, Comparator<Interaction> interactionComparator, Comparator<CvTerm> sourceComparator)
Constructor for CuratedModelledInteractionComparator.
- Parameters:
participantComparator- : required to compare participantsinteractionComparator- aComparatorobject.sourceComparator- aComparatorobject.
-
-
Method Detail
-
getSourceComparator
public Comparator<CvTerm> getSourceComparator()
Getter for the field
sourceComparator.- Returns:
- a
Comparatorobject.
-
compare
public int compare(ModelledInteraction modelledInteraction1, ModelledInteraction modelledInteraction2)
It will use aComparatorof typeInteractionto compare basic interaction properties. Then it will compare the modelledParticipants using CustomizableModelledParticipantComparator. Finally, it will compare the source of the modelledInteraction using AbstractCvTermComparator- Specified by:
comparein interfaceComparator<ModelledInteraction>- Overrides:
comparein classModelledInteractionComparator- Parameters:
modelledInteraction1- aModelledInteractionobject.modelledInteraction2- aModelledInteractionobject.- Returns:
- a int.
-
-