Class UnambiguousEntityComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.participant.EntityComparator
-
- psidev.psi.mi.jami.utils.comparator.participant.UnambiguousEntityComparator
-
- All Implemented Interfaces:
Comparator<Entity>
public class UnambiguousEntityComparator extends EntityComparator
Unambiguous generic entity comparator Modelled participants come first and then experimental participants. - It uses UnambiguousParticipantPoolComparator to compare participant sets - It uses UnambiguousModelledParticipantComparator to compare components - It uses UnambiguousParticipantEvidenceComparator to compare experimental participants - It uses UnambiguousParticipantBaseComparator to compare basic participant properties- Since:
04/02/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousEntityComparator()
Creates a UnambiguousParticipantComparator.
-
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.UnambiguousModelledEntityComparator
getBiologicalEntityComparator()
Getter for the fieldbiologicalEntityComparator
.UnambiguousEntityBaseComparator
getEntityBaseComparator()
Getter for the fieldentityBaseComparator
.UnambiguousExperimentalEntityComparator
getExperimentalEntityComparator()
Getter for the fieldexperimentalEntityComparator
.UnambiguousParticipantComparator
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 UnambiguousEntityBaseComparator getEntityBaseComparator()
Getter for the field
entityBaseComparator
.- Overrides:
getEntityBaseComparator
in classEntityComparator
- Returns:
- a
EntityBaseComparator
object.
-
getExperimentalEntityComparator
public UnambiguousExperimentalEntityComparator getExperimentalEntityComparator()
Getter for the field
experimentalEntityComparator
.- Overrides:
getExperimentalEntityComparator
in classEntityComparator
- Returns:
- a
ExperimentalEntityComparator
object.
-
getBiologicalEntityComparator
public UnambiguousModelledEntityComparator getBiologicalEntityComparator()
Getter for the field
biologicalEntityComparator
.- Overrides:
getBiologicalEntityComparator
in classEntityComparator
- Returns:
- a
ModelledEntityComparator
object.
-
getParticipantComparator
public UnambiguousParticipantComparator getParticipantComparator()
Getter for the field
participantComparator
.- Overrides:
getParticipantComparator
in classEntityComparator
- Returns:
- a
ParticipantComparator
object.
-
compare
public int compare(Entity participant1, Entity participant2)
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 Modelled participants come first and then experimental participants. - It uses UnambiguousParticipantPoolComparator to compare participant sets - It uses UnambiguousModelledParticipantComparator to compare components - It uses UnambiguousParticipantEvidenceComparator to compare experimental participants - It uses UnambiguousParticipantBaseComparator 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.
-
-