Class UnambiguousExactParticipantComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.participant.ParticipantComparator
-
- psidev.psi.mi.jami.utils.comparator.participant.UnambiguousExactParticipantComparator
-
- All Implemented Interfaces:
Comparator<Participant>
public class UnambiguousExactParticipantComparator extends ParticipantComparator
Unambiguous exact generic Participant comparator Modelled participants come first and then experimental participants. - It uses UnambiguousExactParticipantPoolComparator to compare participant sets - It uses UnambiguousExactModelledParticipantComparator to compare components - It uses UnambiguousExactParticipantEvidenceComparator to compare experimental participants - It uses UnambiguousExactParticipantBaseComparator to compare basic participant properties- Since:
04/02/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousExactParticipantComparator()Creates a UnambiguousExactParticipantComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanareEquals(Participant participant1, Participant participant2)Use UnambiguousExactParticipantComparator to know if two participants are equals.intcompare(Participant participant1, Participant participant2)Modelled participants come first and then experimental participants.UnambiguousExactModelledParticipantComparatorgetBiologicalParticipantComparator()Getter for the fieldbiologicalParticipantComparator.UnambiguousExactParticipantEvidenceComparatorgetExperimentalParticipantComparator()Getter for the fieldexperimentalParticipantComparator.UnambiguousExactParticipantBaseComparatorgetParticipantBaseComparator()Getter for the fieldparticipantBaseComparator.UnambiguousExactParticipantPoolComparatorgetPoolComparator()Getter for the fieldpoolComparator.-
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()
Getter for the field
participantBaseComparator.- Overrides:
getParticipantBaseComparatorin classParticipantComparator- Returns:
- a
ParticipantBaseComparatorobject.
-
getExperimentalParticipantComparator
public UnambiguousExactParticipantEvidenceComparator getExperimentalParticipantComparator()
Getter for the field
experimentalParticipantComparator.- Overrides:
getExperimentalParticipantComparatorin classParticipantComparator- Returns:
- a
ParticipantEvidenceComparatorobject.
-
getBiologicalParticipantComparator
public UnambiguousExactModelledParticipantComparator getBiologicalParticipantComparator()
Getter for the field
biologicalParticipantComparator.- Overrides:
getBiologicalParticipantComparatorin classParticipantComparator- Returns:
- a
ModelledParticipantComparatorobject.
-
getPoolComparator
public UnambiguousExactParticipantPoolComparator getPoolComparator()
Description copied from class:ParticipantComparatorGetter for the field
poolComparator.- Overrides:
getPoolComparatorin classParticipantComparator- Returns:
- a
ParticipantPoolComparatorobject.
-
compare
public int compare(Participant participant1, Participant participant2)
Modelled participants come first and then experimental participants. - It uses UnambiguousExactParticipantPoolComparator to compare participant sets - It uses UnambiguousExactModelledParticipantComparator to compare components - It uses UnambiguousExactParticipantEvidenceComparator to compare experimental participants - It uses UnambiguousExactParticipantBaseComparator to compare basic participant properties- Specified by:
comparein interfaceComparator<Participant>- Overrides:
comparein classParticipantComparator- Parameters:
participant1- aParticipantobject.participant2- aParticipantobject.- Returns:
- a int.
-
areEquals
public static boolean areEquals(Participant participant1, Participant participant2)
Use UnambiguousExactParticipantComparator to know if two participants are equals.- Parameters:
participant1- aParticipantobject.participant2- aParticipantobject.- Returns:
- true if the two participants are equal
-
-