Class UnambiguousExactModelledParticipantPoolComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.participant.ModelledParticipantPoolComparator
-
- psidev.psi.mi.jami.utils.comparator.participant.UnambiguousExactModelledParticipantPoolComparator
-
- All Implemented Interfaces:
Comparator<ModelledParticipantPool>
public class UnambiguousExactModelledParticipantPoolComparator extends ModelledParticipantPoolComparator
unambiguous exact biological participant pool comparator. It will compare the basic properties of a biological participant using UnambiguousExactParticipantBaseComparator.This comparator will ignore all the other properties of a biological participant.
- Since:
13/02/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousExactModelledParticipantPoolComparator()
UnambiguousExactModelledParticipantPoolComparator(UnambiguousExactEntityBaseComparator interactorComparator)
Constructor for UnambiguousExactModelledParticipantPoolComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(ModelledParticipantPool component1, ModelledParticipantPool component2)
Use UnambiguousExactModelledParticipantComparator to know if two biological participant are equals.int
compare(ModelledParticipantPool component1, ModelledParticipantPool component2)
It will compare the basic properties of a biological participant pool using ParticipantBaseComparator.UnambiguousExactModelledEntityComparator
getModelledEntityComparator()
Getter for the fieldmodelledEntityComparator
.UnambiguousExactParticipantBaseComparator
getParticipantBaseComparator()
Getter for the fieldparticipantBaseComparator
.-
Methods inherited from class psidev.psi.mi.jami.utils.comparator.participant.ModelledParticipantPoolComparator
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
-
UnambiguousExactModelledParticipantPoolComparator
public UnambiguousExactModelledParticipantPoolComparator()
Creates a new UnambiguousExactModelledParticipantPoolComparator. It will use a UnambiguousExactParticipantBaseComparator to compare the basic properties of a participant.
-
UnambiguousExactModelledParticipantPoolComparator
public UnambiguousExactModelledParticipantPoolComparator(UnambiguousExactEntityBaseComparator interactorComparator)
Constructor for UnambiguousExactModelledParticipantPoolComparator.
- Parameters:
interactorComparator
- aUnambiguousExactEntityBaseComparator
object.
-
-
Method Detail
-
areEquals
public static boolean areEquals(ModelledParticipantPool component1, ModelledParticipantPool component2)
Use UnambiguousExactModelledParticipantComparator to know if two biological participant are equals.- Parameters:
component1
- aModelledParticipantPool
object.component2
- aModelledParticipantPool
object.- Returns:
- true if the two biological participant are equal
-
getParticipantBaseComparator
public UnambiguousExactParticipantBaseComparator getParticipantBaseComparator()
Getter for the field
participantBaseComparator
.- Overrides:
getParticipantBaseComparator
in classModelledParticipantPoolComparator
- Returns:
- a
ParticipantBaseComparator
object.
-
getModelledEntityComparator
public UnambiguousExactModelledEntityComparator getModelledEntityComparator()
Getter for the field
modelledEntityComparator
.- Overrides:
getModelledEntityComparator
in classModelledParticipantPoolComparator
- Returns:
- a
Comparator
object.
-
compare
public int compare(ModelledParticipantPool component1, ModelledParticipantPool component2)
It will compare the basic properties of a biological participant pool using ParticipantBaseComparator. Then features will be compared with ModelledFeatureComparator. All the participant candidates will be compared using ModelledEntityComparator This comparator will ignore all the other properties of a biological participant. It will compare the basic properties of a component using UnambiguousExactParticipantBaseComparator.This comparator will ignore all the other properties of a component.
- Specified by:
compare
in interfaceComparator<ModelledParticipantPool>
- Overrides:
compare
in classModelledParticipantPoolComparator
- Parameters:
component1
- aModelledParticipantPool
object.component2
- aModelledParticipantPool
object.- Returns:
- a int.
-
-