Class UnambiguousExactModelledParticipantComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.participant.ModelledParticipantComparator
-
- psidev.psi.mi.jami.utils.comparator.participant.UnambiguousExactModelledParticipantComparator
-
- All Implemented Interfaces:
Comparator<ModelledParticipant>
,CustomizableModelledParticipantComparator<ModelledParticipant>
public class UnambiguousExactModelledParticipantComparator extends ModelledParticipantComparator
unambiguous exact biological participant 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 UnambiguousExactModelledParticipantComparator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(ModelledParticipant component1, ModelledParticipant component2)
Use UnambiguousExactModelledParticipantComparator to know if two biological participant are equals.int
compare(ModelledParticipant component1, ModelledParticipant component2)
It will compare the basic properties of a component using UnambiguousExactParticipantBaseComparator.UnambiguousExactModelledParticipantPoolComparator
getParticipantPoolComparator()
getParticipantPoolComparator-
Methods inherited from class psidev.psi.mi.jami.utils.comparator.participant.ModelledParticipantComparator
clearProcessedComplexes, isCheckComplexesAsInteractors, setCheckComplexesAsInteractors, setPoolComparator
-
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(ModelledParticipant component1, ModelledParticipant component2)
Use UnambiguousExactModelledParticipantComparator to know if two biological participant are equals.- Parameters:
component1
- aModelledParticipant
object.component2
- aModelledParticipant
object.- Returns:
- true if the two biological participant are equal
-
getParticipantPoolComparator
public UnambiguousExactModelledParticipantPoolComparator getParticipantPoolComparator()
Description copied from class:ModelledParticipantComparator
getParticipantPoolComparator
- Overrides:
getParticipantPoolComparator
in classModelledParticipantComparator
- Returns:
- a
ModelledParticipantPoolComparator
object.
-
compare
public int compare(ModelledParticipant component1, ModelledParticipant 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<ModelledParticipant>
- Overrides:
compare
in classModelledParticipantComparator
- Parameters:
component1
- aModelledParticipant
object.component2
- aModelledParticipant
object.- Returns:
- a int.
-
-