Class UnambiguousParticipantComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.participant.ParticipantComparator
-
- psidev.psi.mi.jami.utils.comparator.participant.UnambiguousParticipantComparator
-
- All Implemented Interfaces:
Comparator<Participant>
public class UnambiguousParticipantComparator extends ParticipantComparator
Unambiguous generic Participant comparator Modelled participants come first and then experimental participants. - It uses UnambiguousEntityComparator to compare components - It uses UnambiguousModelledParticipantComparator to compare components - It uses UnambiguousParticipantEvidenceComparator to compare experimental participants - It uses UnambiguousParticipantBaseComparator to compare basic participant properties- Since:
04/02/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousParticipantComparator()
Creates a UnambiguousParticipantComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(Participant participant1, Participant participant2)
Use UnambiguousParticipantComparator to know if two participants are equals.int
compare(Participant participant1, Participant participant2)
Modelled participants come first and then experimental participants.UnambiguousModelledParticipantComparator
getBiologicalParticipantComparator()
Getter for the fieldbiologicalParticipantComparator
.UnambiguousParticipantEvidenceComparator
getExperimentalParticipantComparator()
Getter for the fieldexperimentalParticipantComparator
.UnambiguousParticipantBaseComparator
getParticipantBaseComparator()
Getter for the fieldparticipantBaseComparator
.UnambiguousParticipantPoolComparator
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 UnambiguousParticipantBaseComparator getParticipantBaseComparator()
Getter for the field
participantBaseComparator
.- Overrides:
getParticipantBaseComparator
in classParticipantComparator
- Returns:
- a
ParticipantBaseComparator
object.
-
getExperimentalParticipantComparator
public UnambiguousParticipantEvidenceComparator getExperimentalParticipantComparator()
Getter for the field
experimentalParticipantComparator
.- Overrides:
getExperimentalParticipantComparator
in classParticipantComparator
- Returns:
- a
ParticipantEvidenceComparator
object.
-
getBiologicalParticipantComparator
public UnambiguousModelledParticipantComparator getBiologicalParticipantComparator()
Getter for the field
biologicalParticipantComparator
.- Overrides:
getBiologicalParticipantComparator
in classParticipantComparator
- Returns:
- a
ModelledParticipantComparator
object.
-
getPoolComparator
public UnambiguousParticipantPoolComparator 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 UnambiguousEntityComparator to compare components - It uses UnambiguousModelledParticipantComparator to compare components - It uses UnambiguousParticipantEvidenceComparator to compare experimental participants - It uses UnambiguousParticipantBaseComparator 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 UnambiguousParticipantComparator to know if two participants are equals.- Parameters:
participant1
- aParticipant
object.participant2
- aParticipant
object.- Returns:
- true if the two participants are equal
-
-