Class ParticipantComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.participant.ParticipantComparator
-
- All Implemented Interfaces:
Comparator<Participant>
- Direct Known Subclasses:
UnambiguousExactParticipantComparator
,UnambiguousParticipantComparator
public class ParticipantComparator extends Object implements Comparator<Participant>
Generic participant comparator. Modelled participants come first and then experimental participants. - It uses ParticipantEvidenceComparator to compare experimental participants - It uses ModelledParticipantComparator to compare biological participants - It uses ParticipantBaseComparator to compare basic participant properties - It uses ParticipantPoolComparator to compare basic participant pool properties- Since:
04/02/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description ParticipantComparator(ParticipantBaseComparator participantBaseComparator, ParticipantEvidenceComparator experimentalParticipantComparator, ModelledParticipantComparator modelledParticipantComparator, ParticipantPoolComparator poolComparator)
Constructor for ParticipantComparator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Participant participant1, Participant participant2)
Modelled participants come first and then experimental participants.ModelledParticipantComparator
getBiologicalParticipantComparator()
Getter for the fieldbiologicalParticipantComparator
.ParticipantEvidenceComparator
getExperimentalParticipantComparator()
Getter for the fieldexperimentalParticipantComparator
.ParticipantBaseComparator
getParticipantBaseComparator()
Getter for the fieldparticipantBaseComparator
.ParticipantPoolComparator
getPoolComparator()
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
-
-
-
-
Constructor Detail
-
ParticipantComparator
public ParticipantComparator(ParticipantBaseComparator participantBaseComparator, ParticipantEvidenceComparator experimentalParticipantComparator, ModelledParticipantComparator modelledParticipantComparator, ParticipantPoolComparator poolComparator)
Constructor for ParticipantComparator.
- Parameters:
participantBaseComparator
- aParticipantBaseComparator
object.experimentalParticipantComparator
- aParticipantEvidenceComparator
object.modelledParticipantComparator
- aModelledParticipantComparator
object.poolComparator
- aParticipantPoolComparator
object.
-
-
Method Detail
-
compare
public int compare(Participant participant1, Participant participant2)
Modelled participants come first and then experimental participants. - It uses ParticipantEvidenceComparator to compare experimental participants - It uses ModelledParticipantComparator to compare biological participants - It uses ParticipantBaseComparator to compare basic participant properties- Specified by:
compare
in interfaceComparator<Participant>
- Parameters:
participant1
- aParticipant
object.participant2
- aParticipant
object.- Returns:
- a int.
-
getParticipantBaseComparator
public ParticipantBaseComparator getParticipantBaseComparator()
Getter for the field
participantBaseComparator
.- Returns:
- a
ParticipantBaseComparator
object.
-
getExperimentalParticipantComparator
public ParticipantEvidenceComparator getExperimentalParticipantComparator()
Getter for the field
experimentalParticipantComparator
.- Returns:
- a
ParticipantEvidenceComparator
object.
-
getBiologicalParticipantComparator
public ModelledParticipantComparator getBiologicalParticipantComparator()
Getter for the field
biologicalParticipantComparator
.- Returns:
- a
ModelledParticipantComparator
object.
-
getPoolComparator
public ParticipantPoolComparator getPoolComparator()
Getter for the field
poolComparator
.- Returns:
- a
ParticipantPoolComparator
object.
-
-