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 SummaryConstructors Constructor Description UnambiguousExactParticipantComparator()Creates a UnambiguousExactParticipantComparator.
 - 
Method SummaryAll 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface java.util.Comparatorequals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
 
- 
 
- 
- 
- 
Method Detail- 
getParticipantBaseComparatorpublic UnambiguousExactParticipantBaseComparator getParticipantBaseComparator() Getter for the field participantBaseComparator.- Overrides:
- getParticipantBaseComparatorin class- ParticipantComparator
- Returns:
- a ParticipantBaseComparatorobject.
 
 - 
getExperimentalParticipantComparatorpublic UnambiguousExactParticipantEvidenceComparator getExperimentalParticipantComparator() Getter for the field experimentalParticipantComparator.- Overrides:
- getExperimentalParticipantComparatorin class- ParticipantComparator
- Returns:
- a ParticipantEvidenceComparatorobject.
 
 - 
getBiologicalParticipantComparatorpublic UnambiguousExactModelledParticipantComparator getBiologicalParticipantComparator() Getter for the field biologicalParticipantComparator.- Overrides:
- getBiologicalParticipantComparatorin class- ParticipantComparator
- Returns:
- a ModelledParticipantComparatorobject.
 
 - 
getPoolComparatorpublic UnambiguousExactParticipantPoolComparator getPoolComparator() Description copied from class:ParticipantComparatorGetter for the field poolComparator.- Overrides:
- getPoolComparatorin class- ParticipantComparator
- Returns:
- a ParticipantPoolComparatorobject.
 
 - 
comparepublic 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 interface- Comparator<Participant>
- Overrides:
- comparein class- ParticipantComparator
- Parameters:
- participant1- a- Participantobject.
- participant2- a- Participantobject.
- Returns:
- a int.
 
 - 
areEqualspublic static boolean areEquals(Participant participant1, Participant participant2) Use UnambiguousExactParticipantComparator to know if two participants are equals.- Parameters:
- participant1- a- Participantobject.
- participant2- a- Participantobject.
- Returns:
- true if the two participants are equal
 
 
- 
 
-