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 boolean
areEquals(ParticipantPool participant1, ParticipantPool participant2)
Use UnambiguousExactParticipantPoolComparator to know if two participants are equals.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 UnambiguousExactEntityBaseComparatorUnambiguousExactParticipantBaseComparator
getParticipantBaseComparator()
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:ParticipantPoolComparator
Getter for the field
participantBaseComparator
.- Overrides:
getParticipantBaseComparator
in classParticipantPoolComparator
- Returns:
- a
ParticipantBaseComparator
object.
-
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:
compare
in interfaceComparator<ParticipantPool>
- Overrides:
compare
in classParticipantPoolComparator
- Parameters:
participant1
- aParticipantPool
object.participant2
- aParticipantPool
object.- Returns:
- a int.
-
areEquals
public static boolean areEquals(ParticipantPool participant1, ParticipantPool participant2)
Use UnambiguousExactParticipantPoolComparator to know if two participants are equals.- Parameters:
participant1
- aParticipantPool
object.participant2
- aParticipantPool
object.- Returns:
- true if the two participants are equal
-
-