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 boolean
areEquals(Participant participant1, Participant participant2)
Use UnambiguousExactParticipantComparator to know if two participants are equals.int
compare(Participant participant1, Participant participant2)
Modelled participants come first and then experimental participants.UnambiguousExactModelledParticipantComparator
getBiologicalParticipantComparator()
Getter for the fieldbiologicalParticipantComparator
.UnambiguousExactParticipantEvidenceComparator
getExperimentalParticipantComparator()
Getter for the fieldexperimentalParticipantComparator
.UnambiguousExactParticipantBaseComparator
getParticipantBaseComparator()
Getter for the fieldparticipantBaseComparator
.UnambiguousExactParticipantPoolComparator
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
-
-
-
-
Method Detail
-
getParticipantBaseComparator
public UnambiguousExactParticipantBaseComparator getParticipantBaseComparator()
Getter for the field
participantBaseComparator
.- Overrides:
getParticipantBaseComparator
in classParticipantComparator
- Returns:
- a
ParticipantBaseComparator
object.
-
getExperimentalParticipantComparator
public UnambiguousExactParticipantEvidenceComparator getExperimentalParticipantComparator()
Getter for the field
experimentalParticipantComparator
.- Overrides:
getExperimentalParticipantComparator
in classParticipantComparator
- Returns:
- a
ParticipantEvidenceComparator
object.
-
getBiologicalParticipantComparator
public UnambiguousExactModelledParticipantComparator getBiologicalParticipantComparator()
Getter for the field
biologicalParticipantComparator
.- Overrides:
getBiologicalParticipantComparator
in classParticipantComparator
- Returns:
- a
ModelledParticipantComparator
object.
-
getPoolComparator
public UnambiguousExactParticipantPoolComparator getPoolComparator()
Description copied from class:ParticipantComparator
Getter for the field
poolComparator
.- Overrides:
getPoolComparator
in classParticipantComparator
- Returns:
- a
ParticipantPoolComparator
object.
-
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:
compare
in interfaceComparator<Participant>
- Overrides:
compare
in classParticipantComparator
- Parameters:
participant1
- aParticipant
object.participant2
- aParticipant
object.- Returns:
- a int.
-
areEquals
public static boolean areEquals(Participant participant1, Participant participant2)
Use UnambiguousExactParticipantComparator to know if two participants are equals.- Parameters:
participant1
- aParticipant
object.participant2
- aParticipant
object.- Returns:
- true if the two participants are equal
-
-