Class UnambiguousParticipantInteractorComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.participant.ParticipantInteractorComparator<Entity>
-
- psidev.psi.mi.jami.utils.comparator.participant.UnambiguousParticipantInteractorComparator
-
- All Implemented Interfaces:
Comparator<Entity>
public class UnambiguousParticipantInteractorComparator extends ParticipantInteractorComparator<Entity>
It will compare the interactors using UnambiguousInteractorComparator. This comparator will ignore all the other properties of a participant.- Since:
16/01/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousParticipantInteractorComparator()
Creates a new UnambiguousParticipantInteractorComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(Entity participant1, Entity participant2)
Use UnambiguousParticipantInteractorComparator to know if two participants are equals.int
compare(Entity participant1, Entity participant2)
It will compare the interactors using UnambiguousInteractorComparator.UnambiguousInteractorComparator
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 UnambiguousInteractorComparator getInteractorComparator()
Description copied from class:ParticipantInteractorComparator
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 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.
-
-