Class UnambiguousExactEntityComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.participant.EntityComparator
-
- psidev.psi.mi.jami.utils.comparator.participant.UnambiguousExactEntityComparator
-
- All Implemented Interfaces:
Comparator<Entity>
public class UnambiguousExactEntityComparator extends EntityComparator
Unambiguous exact generic entity comparator Modelled participants come first and then experimental participants. - It uses UnambiguousExactParticipantPoolComparator to compare participant sets - It uses UnambiguousExactModelledParticipantComparator to compare components - It uses UnambiguousExactParticipantEvidenceComparator to compare experimental participants - It uses UnambiguousExactParticipantBaseComparator to compare basic participant properties- Since:
04/02/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousExactEntityComparator()
Creates a UnambiguousExactParticipantComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(Entity participant1, Entity participant2)
Use UnambiguousExactEntityComparator to know if two participants are equals.int
compare(Entity participant1, Entity participant2)
Modelled participants come first and then experimental participants.UnambiguousExactModelledEntityComparator
getBiologicalEntityComparator()
Getter for the fieldbiologicalEntityComparator
.UnambiguousExactEntityBaseComparator
getEntityBaseComparator()
Getter for the fieldentityBaseComparator
.UnambiguousExactExperimentalEntityComparator
getExperimentalEntityComparator()
Getter for the fieldexperimentalEntityComparator
.UnambiguousExactParticipantComparator
getParticipantComparator()
Getter for the fieldparticipantComparator
.-
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
-
getEntityBaseComparator
public UnambiguousExactEntityBaseComparator getEntityBaseComparator()
Getter for the field
entityBaseComparator
.- Overrides:
getEntityBaseComparator
in classEntityComparator
- Returns:
- a
EntityBaseComparator
object.
-
getExperimentalEntityComparator
public UnambiguousExactExperimentalEntityComparator getExperimentalEntityComparator()
Getter for the field
experimentalEntityComparator
.- Overrides:
getExperimentalEntityComparator
in classEntityComparator
- Returns:
- a
ExperimentalEntityComparator
object.
-
getBiologicalEntityComparator
public UnambiguousExactModelledEntityComparator getBiologicalEntityComparator()
Getter for the field
biologicalEntityComparator
.- Overrides:
getBiologicalEntityComparator
in classEntityComparator
- Returns:
- a
ModelledEntityComparator
object.
-
getParticipantComparator
public UnambiguousExactParticipantComparator getParticipantComparator()
Getter for the field
participantComparator
.- Overrides:
getParticipantComparator
in classEntityComparator
- Returns:
- a
ParticipantComparator
object.
-
compare
public int compare(Entity participant1, Entity participant2)
Description copied from class:EntityComparator
Modelled participants come first and then experimental participants. - It uses ParticipantEvidenceComparator to compare experimental participants - It uses ModelledParticipantComparator to compare biological participants - It uses ParticipantBaseComparator to compare basic participant properties- Specified by:
compare
in interfaceComparator<Entity>
- Overrides:
compare
in classEntityComparator
- Parameters:
participant1
- aEntity
object.participant2
- aEntity
object.- Returns:
- a int.
-
-