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 booleanareEquals(ModelledParticipantPool component1, ModelledParticipantPool component2)Use UnambiguousExactModelledParticipantComparator to know if two biological participant are equals.intcompare(ModelledParticipantPool component1, ModelledParticipantPool component2)It will compare the basic properties of a biological participant pool using ParticipantBaseComparator.UnambiguousExactModelledEntityComparatorgetModelledEntityComparator()Getter for the fieldmodelledEntityComparator.UnambiguousExactParticipantBaseComparatorgetParticipantBaseComparator()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- aUnambiguousExactEntityBaseComparatorobject.
-
-
Method Detail
-
areEquals
public static boolean areEquals(ModelledParticipantPool component1, ModelledParticipantPool component2)
Use UnambiguousExactModelledParticipantComparator to know if two biological participant are equals.- Parameters:
component1- aModelledParticipantPoolobject.component2- aModelledParticipantPoolobject.- Returns:
- true if the two biological participant are equal
-
getParticipantBaseComparator
public UnambiguousExactParticipantBaseComparator getParticipantBaseComparator()
Getter for the field
participantBaseComparator.- Overrides:
getParticipantBaseComparatorin classModelledParticipantPoolComparator- Returns:
- a
ParticipantBaseComparatorobject.
-
getModelledEntityComparator
public UnambiguousExactModelledEntityComparator getModelledEntityComparator()
Getter for the field
modelledEntityComparator.- Overrides:
getModelledEntityComparatorin classModelledParticipantPoolComparator- Returns:
- a
Comparatorobject.
-
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:
comparein interfaceComparator<ModelledParticipantPool>- Overrides:
comparein classModelledParticipantPoolComparator- Parameters:
component1- aModelledParticipantPoolobject.component2- aModelledParticipantPoolobject.- Returns:
- a int.
-
-