Class UnambiguousParticipantPoolComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.participant.ParticipantPoolComparator
-
- psidev.psi.mi.jami.utils.comparator.participant.UnambiguousParticipantPoolComparator
-
- All Implemented Interfaces:
Comparator<ParticipantPool>
public class UnambiguousParticipantPoolComparator extends ParticipantPoolComparator
Unambiguous participant pool comparator It will first compares basic participant properties using UnambiguousParticipantBaseComparator, then it will compare participant pool type using cv term comparator and then it will compare each participant candidate using UnambiguousEntityBaseComparator- Since:
16/01/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousParticipantPoolComparator()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 UnambiguousParticipantPoolComparator to know if two participants are equals.intcompare(ParticipantPool participant1, ParticipantPool participant2)It will first compares basic participant properties using ParticipantBaseComparator, then it will compare participant pool type using cv term comparator and then it will compare each participant candidate using EntityBaseComparatorUnambiguousParticipantBaseComparatorgetParticipantBaseComparator()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 UnambiguousParticipantBaseComparator getParticipantBaseComparator()
Getter 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 ParticipantBaseComparator, then it will compare participant pool type using cv term comparator and then it will compare each participant candidate using EntityBaseComparator It will first compares basic participant properties using UnambiguousParticipantBaseComparator, then it will compare participant pool type using cv term comparator and then it will compare each participant candidate using UnambiguousEntityBaseComparator- 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 UnambiguousParticipantPoolComparator to know if two participants are equals.- Parameters:
participant1- aParticipantPoolobject.participant2- aParticipantPoolobject.- Returns:
- true if the two participants are equal
-
-