Class UnambiguousExactModelledInteractionComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.interaction.ModelledInteractionComparator
-
- psidev.psi.mi.jami.utils.comparator.interaction.UnambiguousExactModelledInteractionComparator
-
- All Implemented Interfaces:
Comparator<ModelledInteraction>
public class UnambiguousExactModelledInteractionComparator extends ModelledInteractionComparator
Unambiguous exact ModelledInteraction comparator. It will use a UnambiguousInteractionBaseComparator to compare basic interaction properties. Then it will compare the modelledParticipants using UnambiguousExactModelledParticipantComparator.- Since:
21/01/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousExactModelledInteractionComparator()Creates a new UnambiguousExactModelledInteractionComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanareEquals(ModelledInteraction interaction1, ModelledInteraction interaction2)Use UnambiguousExactModelledInteractionComparator to know if two modelled interactions are equals.intcompare(ModelledInteraction interaction1, ModelledInteraction interaction2)It will use aComparatorof typeInteractionto compare basic interaction properties.-
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
-
-
-
-
Method Detail
-
compare
public int compare(ModelledInteraction interaction1, ModelledInteraction interaction2)
Description copied from class:ModelledInteractionComparatorIt will use aComparatorof typeInteractionto compare basic interaction properties. Then it will compare the modelledParticipants using CustomizableModelledParticipantComparator.- Specified by:
comparein interfaceComparator<ModelledInteraction>- Overrides:
comparein classModelledInteractionComparator- Parameters:
interaction1- aModelledInteractionobject.interaction2- aModelledInteractionobject.- Returns:
- a int.
-
areEquals
public static boolean areEquals(ModelledInteraction interaction1, ModelledInteraction interaction2)
Use UnambiguousExactModelledInteractionComparator to know if two modelled interactions are equals.- Parameters:
interaction1- aModelledInteractionobject.interaction2- aModelledInteractionobject.- Returns:
- true if the two modelled interactions are equal
-
-