Class UnambiguousModelledParticipantInteractorComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.participant.ParticipantInteractorComparator<ModelledEntity>
-
- psidev.psi.mi.jami.utils.comparator.participant.UnambiguousModelledParticipantInteractorComparator
-
- All Implemented Interfaces:
Comparator<ModelledEntity>
,CustomizableModelledParticipantComparator<ModelledEntity>
public class UnambiguousModelledParticipantInteractorComparator extends ParticipantInteractorComparator<ModelledEntity> implements CustomizableModelledParticipantComparator<ModelledEntity>
Unambiguous biological participant comparator based on the interactor only. It will compare the basic properties of an interactor using UnambiguousInteractorComparator.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 UnambiguousModelledParticipantInteractorComparator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(ModelledEntity component1, ModelledEntity component2)
Use UnambiguousModelledParticipantInteractorComparator 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.UnambiguousInteractorComparator
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
-
-
-
-
Method Detail
-
areEquals
public static boolean areEquals(ModelledEntity component1, ModelledEntity component2)
Use UnambiguousModelledParticipantInteractorComparator to know if two biological participants are equals.- Parameters:
component1
- aModelledEntity
object.component2
- aModelledEntity
object.- Returns:
- true if the two biological participants are equal
-
getInteractorComparator
public UnambiguousInteractorComparator 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.
-
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>
-
-