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 booleanareEquals(ModelledEntity component1, ModelledEntity component2)Use UnambiguousModelledParticipantComparator to know if two biological participant are equals.intcompare(ModelledEntity component1, ModelledEntity component2)It will compare the basic properties of a biological participant using ParticipantInteractorComparator.UnambiguousEntityBaseComparatorgetEntityBaseComparator()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- aUnambiguousEntityBaseComparatorobject.
-
-
Method Detail
-
getEntityBaseComparator
public UnambiguousEntityBaseComparator getEntityBaseComparator()
getEntityBaseComparator
- Overrides:
getEntityBaseComparatorin classModelledEntityComparator- Returns:
- a
EntityBaseComparatorobject.
-
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:
comparein interfaceComparator<ModelledEntity>- Overrides:
comparein classModelledEntityComparator- Parameters:
component1- aModelledEntityobject.component2- aModelledEntityobject.- Returns:
- a int.
-
areEquals
public static boolean areEquals(ModelledEntity component1, ModelledEntity component2)
Use UnambiguousModelledParticipantComparator to know if two biological participant are equals.- Parameters:
component1- aModelledEntityobject.component2- aModelledEntityobject.- Returns:
- true if the two biological participant are equal
-
-