Class UnambiguousExactParticipantInteractorComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.participant.ParticipantInteractorComparator<Entity>
-
- psidev.psi.mi.jami.utils.comparator.participant.UnambiguousExactParticipantInteractorComparator
-
- All Implemented Interfaces:
Comparator<Entity>
public class UnambiguousExactParticipantInteractorComparator extends ParticipantInteractorComparator<Entity>
It will compare the interactors using UnambiguousExactInteractorComparator. This comparator will ignore all the other properties of a participant.- Since:
30/05/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousExactParticipantInteractorComparator()
Creates a new UnambiguousExactParticipantInteractorComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(Entity participant1, Entity participant2)
Use UnambiguousExactParticipantInteractorComparator to know if two participants are equals.int
compare(Entity participant1, Entity participant2)
It will compare the interactors using InteractorComparator.UnambiguousExactInteractorComparator
getInteractorComparator()
Getter for the fieldinteractorComparator
.-
Methods inherited from class psidev.psi.mi.jami.utils.comparator.participant.ParticipantInteractorComparator
setInteractorComparator
-
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
-
getInteractorComparator
public UnambiguousExactInteractorComparator getInteractorComparator()
Getter for the field
interactorComparator
.- Overrides:
getInteractorComparator
in classParticipantInteractorComparator<Entity>
- Returns:
- a
InteractorComparator
object.
-
compare
public int compare(Entity participant1, Entity participant2)
It will compare the interactors using InteractorComparator. This comparator will ignore all the other properties of a participant. It will compare the interactors using UnambiguousInteractorComparator. This comparator will ignore all the other properties of a participant.- Specified by:
compare
in interfaceComparator<Entity>
- Overrides:
compare
in classParticipantInteractorComparator<Entity>
- Parameters:
participant1
- a T object.participant2
- a T object.- Returns:
- a int.
-
-