Class ExperimentalEntityComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.participant.ExperimentalEntityComparator
-
- All Implemented Interfaces:
Comparator<ExperimentalEntity>
- Direct Known Subclasses:
UnambiguousExactExperimentalEntityComparator
,UnambiguousExperimentalEntityComparator
public class ExperimentalEntityComparator extends Object implements Comparator<ExperimentalEntity>
Basic Experimental entity comparator. It will compare the basic properties of an experimental entity using EntityBaseComparator and FeatureEvidenceComparator.- Since:
17/01/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description ExperimentalEntityComparator(EntityBaseComparator participantBaseComparator, CollectionComparator<FeatureEvidence> featuresComparator)
Creates a new ParticipantEvidenceComparatorExperimentalEntityComparator(EntityBaseComparator participantBaseComparator, FeatureEvidenceComparator featureComparator)
Creates a new ParticipantEvidenceComparator
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(ExperimentalEntity experimentalParticipant1, ExperimentalEntity experimentalParticipant2)
It will compare the basic properties of an experimental entity using EntityBaseComparator and FeatureEvidenceComparator.CollectionComparator<FeatureEvidence>
getFeatureCollectionComparator()
Getter for the fieldfeatureCollectionComparator
.EntityBaseComparator
getParticipantBaseComparator()
Getter for the fieldparticipantBaseComparator
.-
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
-
ExperimentalEntityComparator
public ExperimentalEntityComparator(EntityBaseComparator participantBaseComparator, FeatureEvidenceComparator featureComparator)
Creates a new ParticipantEvidenceComparator- Parameters:
participantBaseComparator
- : the participant comparator required to compare basic properties of a participantfeatureComparator
- : the comparator for features
-
ExperimentalEntityComparator
public ExperimentalEntityComparator(EntityBaseComparator participantBaseComparator, CollectionComparator<FeatureEvidence> featuresComparator)
Creates a new ParticipantEvidenceComparator- Parameters:
participantBaseComparator
- : the participant comparator required to compare basic properties of a participantfeaturesComparator
- : the comparator for features
-
-
Method Detail
-
getParticipantBaseComparator
public EntityBaseComparator getParticipantBaseComparator()
Getter for the field
participantBaseComparator
.- Returns:
- a
EntityBaseComparator
object.
-
getFeatureCollectionComparator
public CollectionComparator<FeatureEvidence> getFeatureCollectionComparator()
Getter for the field
featureCollectionComparator
.- Returns:
- a
CollectionComparator
object.
-
compare
public int compare(ExperimentalEntity experimentalParticipant1, ExperimentalEntity experimentalParticipant2)
It will compare the basic properties of an experimental entity using EntityBaseComparator and FeatureEvidenceComparator.- Specified by:
compare
in interfaceComparator<ExperimentalEntity>
- Parameters:
experimentalParticipant1
- aExperimentalEntity
object.experimentalParticipant2
- aExperimentalEntity
object.- Returns:
- a int.
-
-