Class UnambiguousModelledEntityComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.participant.ModelledEntityComparator
-
- psidev.psi.mi.jami.utils.comparator.participant.UnambiguousModelledEntityComparator
-
- All Implemented Interfaces:
Comparator<ModelledEntity>
,CustomizableModelledParticipantComparator<ModelledEntity>
public class UnambiguousModelledEntityComparator extends ModelledEntityComparator
unambiguous biological entity 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 UnambiguousModelledEntityComparator()
Creates a new UnambiguousModelledParticipantComparator.UnambiguousModelledEntityComparator(UnambiguousEntityBaseComparator entityBaseComparator)
Constructor for UnambiguousModelledEntityComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(ModelledEntity component1, ModelledEntity component2)
Use UnambiguousModelledParticipantComparator to know if two biological participant are equals.int
compare(ModelledEntity component1, ModelledEntity component2)
It will compare the basic properties of a biological participant using ParticipantInteractorComparator.UnambiguousEntityBaseComparator
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
-
UnambiguousModelledEntityComparator
public UnambiguousModelledEntityComparator()
Creates a new UnambiguousModelledParticipantComparator. It will use a UnambiguousParticipantBaseComparator to compare the basic properties of a participant.
-
UnambiguousModelledEntityComparator
public UnambiguousModelledEntityComparator(UnambiguousEntityBaseComparator entityBaseComparator)
Constructor for UnambiguousModelledEntityComparator.
- Parameters:
entityBaseComparator
- aUnambiguousEntityBaseComparator
object.
-
-
Method Detail
-
getEntityBaseComparator
public UnambiguousEntityBaseComparator getEntityBaseComparator()
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 biological participant using ParticipantInteractorComparator. 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<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 UnambiguousModelledParticipantComparator to know if two biological participant are equals.- Parameters:
component1
- aModelledEntity
object.component2
- aModelledEntity
object.- Returns:
- true if the two biological participant are equal
-
-