Class UnambiguousExactModelledEntityComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.participant.ModelledEntityComparator
-
- psidev.psi.mi.jami.utils.comparator.participant.UnambiguousExactModelledEntityComparator
-
- All Implemented Interfaces:
Comparator<ModelledEntity>
,CustomizableModelledParticipantComparator<ModelledEntity>
public class UnambiguousExactModelledEntityComparator extends ModelledEntityComparator
unambiguous exact biological entity 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 UnambiguousExactModelledEntityComparator()
Creates a new UnambiguousExactModelledParticipantComparator.UnambiguousExactModelledEntityComparator(UnambiguousExactEntityBaseComparator entityBaseComparator)
Constructor for UnambiguousExactModelledEntityComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(ModelledEntity component1, ModelledEntity component2)
Use UnambiguousExactModelledParticipantComparator to know if two biological participant are equals.int
compare(ModelledEntity component1, ModelledEntity component2)
It will compare the basic properties of a component using UnambiguousExactParticipantBaseComparator.UnambiguousExactEntityBaseComparator
getEntityBaseComparator()
getEntityBaseComparator-
Methods inherited from class psidev.psi.mi.jami.utils.comparator.participant.ModelledEntityComparator
clearProcessedComplexes, getFeatureCollectionComparator, isCheckComplexesAsInteractors, setCheckComplexesAsInteractors
-
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
-
UnambiguousExactModelledEntityComparator
public UnambiguousExactModelledEntityComparator()
Creates a new UnambiguousExactModelledParticipantComparator. It will use a UnambiguousExactParticipantBaseComparator to compare the basic properties of a participant.
-
UnambiguousExactModelledEntityComparator
public UnambiguousExactModelledEntityComparator(UnambiguousExactEntityBaseComparator entityBaseComparator)
Constructor for UnambiguousExactModelledEntityComparator.
- Parameters:
entityBaseComparator
- aUnambiguousExactEntityBaseComparator
object.
-
-
Method Detail
-
getEntityBaseComparator
public UnambiguousExactEntityBaseComparator getEntityBaseComparator()
Description copied from class:ModelledEntityComparator
getEntityBaseComparator
- Overrides:
getEntityBaseComparator
in classModelledEntityComparator
- Returns:
- a
EntityBaseComparator
object.
-
compare
public int compare(ModelledEntity component1, ModelledEntity component2)
It will compare the basic properties of a component using UnambiguousExactParticipantBaseComparator. This comparator will ignore all the other properties of a component.- Specified by:
compare
in interfaceComparator<ModelledEntity>
- Overrides:
compare
in classModelledEntityComparator
- Parameters:
component1
- aModelledEntity
object.component2
- aModelledEntity
object.- Returns:
- a int.
-
areEquals
public static boolean areEquals(ModelledEntity component1, ModelledEntity component2)
Use UnambiguousExactModelledParticipantComparator to know if two biological participant are equals.- Parameters:
component1
- aModelledEntity
object.component2
- aModelledEntity
object.- Returns:
- true if the two biological participant are equal
-
-