Class UnambiguousExactExperimentalEntityComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.participant.ExperimentalEntityComparator
-
- psidev.psi.mi.jami.utils.comparator.participant.UnambiguousExactExperimentalEntityComparator
-
- All Implemented Interfaces:
Comparator<ExperimentalEntity>
public class UnambiguousExactExperimentalEntityComparator extends ExperimentalEntityComparator
Unambiguous exact Experimental entity comparator.- Since:
18/01/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousExactExperimentalEntityComparator()
Creates a new UnambiguousExactExperimentalEntityComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(ExperimentalEntity experimentalParticipant1, ExperimentalEntity component2)
Use UnambiguousExperimentalEntityComparator to know if two experimental participants are equals.int
compare(ExperimentalEntity experimentalParticipant1, ExperimentalEntity experimentalParticipant2)
It will compare the basic properties of an experimental entity using EntityBaseComparator and FeatureEvidenceComparator.UnambiguousExactEntityBaseComparator
getParticipantBaseComparator()
Getter for the fieldparticipantBaseComparator
.-
Methods inherited from class psidev.psi.mi.jami.utils.comparator.participant.ExperimentalEntityComparator
getFeatureCollectionComparator
-
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
-
UnambiguousExactExperimentalEntityComparator
public UnambiguousExactExperimentalEntityComparator()
Creates a new UnambiguousExactExperimentalEntityComparator. 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 UnambiguousExactEntityBaseComparator getParticipantBaseComparator()
Description copied from class:ExperimentalEntityComparator
Getter for the field
participantBaseComparator
.- Overrides:
getParticipantBaseComparator
in classExperimentalEntityComparator
- Returns:
- a
EntityBaseComparator
object.
-
compare
public int compare(ExperimentalEntity experimentalParticipant1, ExperimentalEntity experimentalParticipant2)
Description copied from class:ExperimentalEntityComparator
It will compare the basic properties of an experimental entity using EntityBaseComparator and FeatureEvidenceComparator.- Specified by:
compare
in interfaceComparator<ExperimentalEntity>
- Overrides:
compare
in classExperimentalEntityComparator
- Parameters:
experimentalParticipant1
- aExperimentalEntity
object.experimentalParticipant2
- aExperimentalEntity
object.- Returns:
- a int.
-
areEquals
public static boolean areEquals(ExperimentalEntity experimentalParticipant1, ExperimentalEntity component2)
Use UnambiguousExperimentalEntityComparator to know if two experimental participants are equals.- Parameters:
experimentalParticipant1
- aExperimentalEntity
object.component2
- aExperimentalEntity
object.- Returns:
- true if the two experimental participants are equal
-
-