Class UnambiguousExperimentalEntityComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.participant.ExperimentalEntityComparator
-
- psidev.psi.mi.jami.utils.comparator.participant.UnambiguousExperimentalEntityComparator
-
- All Implemented Interfaces:
Comparator<ExperimentalEntity>
public class UnambiguousExperimentalEntityComparator extends ExperimentalEntityComparator
Unambiguous Experimental entity comparator.- Since:
18/01/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousExperimentalEntityComparator()
Creates a new UnambiguousExperimentalEntityComparator.
-
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.UnambiguousEntityBaseComparator
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
-
UnambiguousExperimentalEntityComparator
public UnambiguousExperimentalEntityComparator()
Creates a new UnambiguousExperimentalEntityComparator. It will use a UnambiguousParticipantBaseComparator 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 UnambiguousEntityBaseComparator 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
-
-