Class UnambiguousExactExperimentalParticipantPoolComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.participant.ExperimentalParticipantPoolComparator
-
- psidev.psi.mi.jami.utils.comparator.participant.UnambiguousExactExperimentalParticipantPoolComparator
-
- All Implemented Interfaces:
Comparator<ExperimentalParticipantPool>
public class UnambiguousExactExperimentalParticipantPoolComparator extends ExperimentalParticipantPoolComparator
Unambiguous exact Experimental participant pool comparator. It will first compares experimental roles using UnambiguousCvTermComparator. If both experimental roles are equals, it will look at the identification methods using UnambiguousCvTermComparator. If both identification methods are equals, it will look at the experimental preparations using UnambiguousCvTermComparator. If both experimental preparations are equals, it will look at the expressed in organisms using UnambiguousOrganismComparator.- Since:
18/01/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousExactExperimentalParticipantPoolComparator()
Creates a new UnambiguousExactExperimentalParticipantPoolComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(ExperimentalParticipantPool experimentalParticipant1, ExperimentalParticipantPool component2)
Use UnambiguousExactParticipantEvidenceComparator to know if two experimental participants are equals.int
compare(ExperimentalParticipantPool experimentalParticipant1, ExperimentalParticipantPool experimentalParticipant2)
It will first compares experimental roles using UnambiguousCvTermComparator.UnambiguousExactExperimentalEntityComparator
getExperimentalEntityComparator()
Getter for the fieldexperimentalEntityComparator
.UnambiguousOrganismComparator
getOrganismComparator()
Getter for the fieldorganismComparator
.UnambiguousExactParticipantBaseComparator
getParticipantBaseComparator()
Getter for the fieldparticipantBaseComparator
.-
Methods inherited from class psidev.psi.mi.jami.utils.comparator.participant.ExperimentalParticipantPoolComparator
getCvTermCollectionComparator, getFeatureCollectionComparator, getParameterCollectionComparator
-
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
-
UnambiguousExactExperimentalParticipantPoolComparator
public UnambiguousExactExperimentalParticipantPoolComparator()
Creates a new UnambiguousExactExperimentalParticipantPoolComparator. It will use a UnambiguousExactParticipantBaseComparator to compare the basic properties of a participant, a UnambiguousCvTermComparator to compare experimental roles, preparations and identification methods and a UnambiguousOrganismComparator to compare expressed in organisms
-
-
Method Detail
-
getParticipantBaseComparator
public UnambiguousExactParticipantBaseComparator getParticipantBaseComparator()
Getter for the field
participantBaseComparator
.- Overrides:
getParticipantBaseComparator
in classExperimentalParticipantPoolComparator
- Returns:
- a
ParticipantBaseComparator
object.
-
getOrganismComparator
public UnambiguousOrganismComparator getOrganismComparator()
Getter for the field
organismComparator
.- Overrides:
getOrganismComparator
in classExperimentalParticipantPoolComparator
- Returns:
- a
OrganismComparator
object.
-
getExperimentalEntityComparator
public UnambiguousExactExperimentalEntityComparator getExperimentalEntityComparator()
Description copied from class:ExperimentalParticipantPoolComparator
Getter for the field
experimentalEntityComparator
.- Overrides:
getExperimentalEntityComparator
in classExperimentalParticipantPoolComparator
- Returns:
- a
Comparator
object.
-
compare
public int compare(ExperimentalParticipantPool experimentalParticipant1, ExperimentalParticipantPool experimentalParticipant2)
It will first compares experimental roles using UnambiguousCvTermComparator. If both experimental roles are equals, it will look at the identification methods using UnambiguousCvTermComparator. If both identification methods are equals, it will look at the experimental preparations using UnambiguousCvTermComparator. If both experimental preparations are equals, it will look at the expressed in organisms using UnambiguousOrganismComparator.- Specified by:
compare
in interfaceComparator<ExperimentalParticipantPool>
- Overrides:
compare
in classExperimentalParticipantPoolComparator
- Parameters:
experimentalParticipant1
- aExperimentalParticipantPool
object.experimentalParticipant2
- aExperimentalParticipantPool
object.- Returns:
- a int.
-
areEquals
public static boolean areEquals(ExperimentalParticipantPool experimentalParticipant1, ExperimentalParticipantPool component2)
Use UnambiguousExactParticipantEvidenceComparator to know if two experimental participants are equals.- Parameters:
experimentalParticipant1
- aExperimentalParticipantPool
object.component2
- aExperimentalParticipantPool
object.- Returns:
- true if the two experimental participants are equal
-
-