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 booleanareEquals(ModelledEntity component1, ModelledEntity component2)Use UnambiguousModelledParticipantInteractorComparator to know if two biological participants are equals.voidclearProcessedComplexes()clearProcessedComplexesintcompare(ModelledEntity component1, ModelledEntity component2)It will compare the basic properties of an interactor using UnambiguousInteractorComparator.UnambiguousInteractorComparatorgetInteractorComparator()Getter for the fieldinteractorComparator.booleanisCheckComplexesAsInteractors()isCheckComplexesAsInteractorsvoidsetCheckComplexesAsInteractors(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- aModelledEntityobject.component2- aModelledEntityobject.- Returns:
- true if the two biological participants are equal
-
getInteractorComparator
public UnambiguousInteractorComparator getInteractorComparator()
Description copied from class:ParticipantInteractorComparatorGetter for the field
interactorComparator.- Overrides:
getInteractorComparatorin classParticipantInteractorComparator<ModelledEntity>- Returns:
- a
InteractorComparatorobject.
-
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:
comparein interfaceComparator<ModelledEntity>- Overrides:
comparein classParticipantInteractorComparator<ModelledEntity>- Parameters:
component1- a T object.component2- a T object.- Returns:
- a int.
-
isCheckComplexesAsInteractors
public boolean isCheckComplexesAsInteractors()
isCheckComplexesAsInteractors
- Specified by:
isCheckComplexesAsInteractorsin interfaceCustomizableModelledParticipantComparator<ModelledEntity>- Returns:
- a boolean.
-
setCheckComplexesAsInteractors
public void setCheckComplexesAsInteractors(boolean checkComplexesAsInteractors)
setCheckComplexesAsInteractors
- Specified by:
setCheckComplexesAsInteractorsin interfaceCustomizableModelledParticipantComparator<ModelledEntity>- Parameters:
checkComplexesAsInteractors- a boolean.
-
clearProcessedComplexes
public void clearProcessedComplexes()
clearProcessedComplexes
- Specified by:
clearProcessedComplexesin interfaceCustomizableModelledParticipantComparator<ModelledEntity>
-
-