Class UnambiguousExactModelledParticipantInteractorComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.participant.ParticipantInteractorComparator<ModelledEntity>
-
- psidev.psi.mi.jami.utils.comparator.participant.UnambiguousExactModelledParticipantInteractorComparator
-
- All Implemented Interfaces:
Comparator<ModelledEntity>
,CustomizableModelledParticipantComparator<ModelledEntity>
public class UnambiguousExactModelledParticipantInteractorComparator extends ParticipantInteractorComparator<ModelledEntity> implements CustomizableModelledParticipantComparator<ModelledEntity>
Unambiguous exact biological participant comparator based on the interactor only. It will compare the basic properties of an interactor using UnambiguousExactInteractorComparator. This comparator will ignore all the other properties of a biological participant.- Since:
30/05/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousExactModelledParticipantInteractorComparator()
Creates a new UnambiguousExactModelledParticipantInteractorComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(ModelledEntity component1, ModelledEntity component2)
Use UnambiguousExactModelledParticipantInteractorComparator to know if two biological participants are equals.void
clearProcessedComplexes()
clearProcessedComplexesint
compare(ModelledEntity component1, ModelledEntity component2)
It will compare the basic properties of an interactor using UnambiguousInteractorComparator.UnambiguousExactInteractorComparator
getInteractorComparator()
Getter for the fieldinteractorComparator
.boolean
isCheckComplexesAsInteractors()
isCheckComplexesAsInteractorsvoid
setCheckComplexesAsInteractors(boolean checkComplexesAsInteractors)
setCheckComplexesAsInteractors-
Methods inherited from class psidev.psi.mi.jami.utils.comparator.participant.ParticipantInteractorComparator
setInteractorComparator
-
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
-
UnambiguousExactModelledParticipantInteractorComparator
public UnambiguousExactModelledParticipantInteractorComparator()
Creates a new UnambiguousExactModelledParticipantInteractorComparator. It will use a UnambiguousExactInteractorComparator to compare the basic properties of an interactor.
-
-
Method Detail
-
getInteractorComparator
public UnambiguousExactInteractorComparator getInteractorComparator()
Description copied from class:ParticipantInteractorComparator
Getter for the field
interactorComparator
.- Overrides:
getInteractorComparator
in classParticipantInteractorComparator<ModelledEntity>
- Returns:
- a
InteractorComparator
object.
-
compare
public int compare(ModelledEntity component1, ModelledEntity component2)
It will compare the basic properties of an interactor using UnambiguousInteractorComparator. This comparator will ignore all the other properties of a biological participant.- Specified by:
compare
in interfaceComparator<ModelledEntity>
- Overrides:
compare
in classParticipantInteractorComparator<ModelledEntity>
- Parameters:
component1
- a T object.component2
- a T object.- Returns:
- a int.
-
areEquals
public static boolean areEquals(ModelledEntity component1, ModelledEntity component2)
Use UnambiguousExactModelledParticipantInteractorComparator to know if two biological participants are equals.- Parameters:
component1
- aModelledEntity
object.component2
- aModelledEntity
object.- Returns:
- true if the two biological participants are equal
-
isCheckComplexesAsInteractors
public boolean isCheckComplexesAsInteractors()
isCheckComplexesAsInteractors
- Specified by:
isCheckComplexesAsInteractors
in interfaceCustomizableModelledParticipantComparator<ModelledEntity>
- Returns:
- a boolean.
-
setCheckComplexesAsInteractors
public void setCheckComplexesAsInteractors(boolean checkComplexesAsInteractors)
setCheckComplexesAsInteractors
- Specified by:
setCheckComplexesAsInteractors
in interfaceCustomizableModelledParticipantComparator<ModelledEntity>
- Parameters:
checkComplexesAsInteractors
- a boolean.
-
clearProcessedComplexes
public void clearProcessedComplexes()
clearProcessedComplexes
- Specified by:
clearProcessedComplexes
in interfaceCustomizableModelledParticipantComparator<ModelledEntity>
-
-