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 booleanareEquals(Entity participant1, Entity participant2)Use UnambiguousParticipantInteractorComparator to know if two participants are equals.intcompare(Entity participant1, Entity participant2)It will compare the interactors using UnambiguousInteractorComparator.UnambiguousInteractorComparatorgetInteractorComparator()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:ParticipantInteractorComparatorGetter for the field
interactorComparator.- Overrides:
getInteractorComparatorin classParticipantInteractorComparator<Entity>- Returns:
- a
InteractorComparatorobject.
-
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:
comparein interfaceComparator<Entity>- Overrides:
comparein classParticipantInteractorComparator<Entity>- Parameters:
participant1- a T object.participant2- a T object.- Returns:
- a int.
-
-