Class UnambiguousModelledParticipantPoolComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.participant.ModelledParticipantPoolComparator
-
- psidev.psi.mi.jami.utils.comparator.participant.UnambiguousModelledParticipantPoolComparator
-
- All Implemented Interfaces:
Comparator<ModelledParticipantPool>
public class UnambiguousModelledParticipantPoolComparator extends ModelledParticipantPoolComparator
unambiguous biological participant pool comparator. It will compare the basic properties of a biological participant using UnambiguousParticipantBaseComparator.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 UnambiguousModelledParticipantPoolComparator()
UnambiguousModelledParticipantPoolComparator(UnambiguousEntityBaseComparator interactorComparator)
Constructor for UnambiguousModelledParticipantPoolComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(ModelledParticipantPool component1, ModelledParticipantPool component2)
Use UnambiguousModelledParticipantComparator 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.UnambiguousModelledEntityComparator
getModelledEntityComparator()
Getter for the fieldmodelledEntityComparator
.UnambiguousParticipantBaseComparator
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
-
UnambiguousModelledParticipantPoolComparator
public UnambiguousModelledParticipantPoolComparator()
Creates a new UnambiguousModelledParticipantPoolComparator. It will use a UnambiguousParticipantBaseComparator to compare the basic properties of a participant.
-
UnambiguousModelledParticipantPoolComparator
public UnambiguousModelledParticipantPoolComparator(UnambiguousEntityBaseComparator interactorComparator)
Constructor for UnambiguousModelledParticipantPoolComparator.
- Parameters:
interactorComparator
- aUnambiguousEntityBaseComparator
object.
-
-
Method Detail
-
areEquals
public static boolean areEquals(ModelledParticipantPool component1, ModelledParticipantPool component2)
Use UnambiguousModelledParticipantComparator 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 UnambiguousParticipantBaseComparator getParticipantBaseComparator()
Getter for the field
participantBaseComparator
.- Overrides:
getParticipantBaseComparator
in classModelledParticipantPoolComparator
- Returns:
- a
ParticipantBaseComparator
object.
-
getModelledEntityComparator
public UnambiguousModelledEntityComparator 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 UnambiguousParticipantBaseComparator.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.
-
-