Class UnambiguousExactParticipantPoolComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.participant.ParticipantPoolComparator
-
- psidev.psi.mi.jami.utils.comparator.participant.UnambiguousExactParticipantPoolComparator
-
- All Implemented Interfaces:
Comparator<ParticipantPool>
public class UnambiguousExactParticipantPoolComparator extends ParticipantPoolComparator
Unambiguous exact participant pool comparator It will first compares basic participant properties using UnambiguousExactParticipantBaseComparator, then it will compare participant pool type using cv term comparator and then it will compare each participant candidate using UnambiguousExactEntityBaseComparator- Since:
16/01/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousExactParticipantPoolComparator()Creates a new UnambiguousParticipantBaseComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanareEquals(ParticipantPool participant1, ParticipantPool participant2)Use UnambiguousExactParticipantPoolComparator to know if two participants are equals.intcompare(ParticipantPool participant1, ParticipantPool participant2)It will first compares basic participant properties using UnambiguousExactParticipantBaseComparator, then it will compare participant pool type using cv term comparator and then it will compare each participant candidate using UnambiguousExactEntityBaseComparatorUnambiguousExactParticipantBaseComparatorgetParticipantBaseComparator()Getter for the fieldparticipantBaseComparator.-
Methods inherited from class psidev.psi.mi.jami.utils.comparator.participant.ParticipantPoolComparator
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
-
getParticipantBaseComparator
public UnambiguousExactParticipantBaseComparator getParticipantBaseComparator()
Description copied from class:ParticipantPoolComparatorGetter for the field
participantBaseComparator.- Overrides:
getParticipantBaseComparatorin classParticipantPoolComparator- Returns:
- a
ParticipantBaseComparatorobject.
-
compare
public int compare(ParticipantPool participant1, ParticipantPool participant2)
It will first compares basic participant properties using UnambiguousExactParticipantBaseComparator, then it will compare participant pool type using cv term comparator and then it will compare each participant candidate using UnambiguousExactEntityBaseComparator- Specified by:
comparein interfaceComparator<ParticipantPool>- Overrides:
comparein classParticipantPoolComparator- Parameters:
participant1- aParticipantPoolobject.participant2- aParticipantPoolobject.- Returns:
- a int.
-
areEquals
public static boolean areEquals(ParticipantPool participant1, ParticipantPool participant2)
Use UnambiguousExactParticipantPoolComparator to know if two participants are equals.- Parameters:
participant1- aParticipantPoolobject.participant2- aParticipantPoolobject.- Returns:
- true if the two participants are equal
-
-