Class UnambiguousInteractionInteractorComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.interaction.InteractionInteractorComparator
-
- psidev.psi.mi.jami.utils.comparator.interaction.UnambiguousInteractionInteractorComparator
-
- All Implemented Interfaces:
Comparator<Interaction>
public class UnambiguousInteractionInteractorComparator extends InteractionInteractorComparator
Unambiguous interaction comparator only based on the interactors of an interaction. It will use a UnambiguousInteractorComparator to compare the interactors involved in the interaction. It will ignore all other properties of an Interaction- Since:
18/01/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousInteractionInteractorComparator()
Creates a new UnambiguousInteractionInteractorComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(Interaction interaction1, Interaction interaction2)
Use UnambiguousInteractionInteractorComparator to know if two interactions are equals.int
compare(Interaction interaction1, Interaction interaction2)
It will use a ParticipantInteractorComparator comparator for comparing the participants involved in the interaction.-
Methods inherited from class psidev.psi.mi.jami.utils.comparator.interaction.InteractionInteractorComparator
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(Interaction interaction1, Interaction interaction2)
Description copied from class:InteractionInteractorComparator
It will use a ParticipantInteractorComparator comparator for comparing the participants involved in the interaction. It will ignore all other properties of an Interaction- Specified by:
compare
in interfaceComparator<Interaction>
- Overrides:
compare
in classInteractionInteractorComparator
- Parameters:
interaction1
- aInteraction
object.interaction2
- aInteraction
object.- Returns:
- a int.
-
areEquals
public static boolean areEquals(Interaction interaction1, Interaction interaction2)
Use UnambiguousInteractionInteractorComparator to know if two interactions are equals.- Parameters:
interaction1
- aInteraction
object.interaction2
- aInteraction
object.- Returns:
- true if the two interactions are equal
-
-