Class UnambiguousModelledParticipantComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.participant.ModelledParticipantComparator
-
- psidev.psi.mi.jami.utils.comparator.participant.UnambiguousModelledParticipantComparator
-
- All Implemented Interfaces:
Comparator<ModelledParticipant>
,CustomizableModelledParticipantComparator<ModelledParticipant>
public class UnambiguousModelledParticipantComparator extends ModelledParticipantComparator
Unambiguous biological participant 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 UnambiguousModelledParticipantComparator()
Creates a new UnambiguousModelledParticipantComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(ModelledParticipant component1, ModelledParticipant component2)
Use UnambiguousModelledParticipantComparator to know if two biological participants are equals.int
compare(ModelledParticipant component1, ModelledParticipant component2)
It will compare the basic properties of a biological participant using UnambiguousParticipantBaseComparator.UnambiguousModelledParticipantPoolComparator
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
-
getParticipantPoolComparator
public UnambiguousModelledParticipantPoolComparator 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 biological participant using UnambiguousParticipantBaseComparator. This comparator will ignore all the other properties of a biological participant.- Specified by:
compare
in interfaceComparator<ModelledParticipant>
- Overrides:
compare
in classModelledParticipantComparator
- Parameters:
component1
- aModelledParticipant
object.component2
- aModelledParticipant
object.- Returns:
- a int.
-
areEquals
public static boolean areEquals(ModelledParticipant component1, ModelledParticipant component2)
Use UnambiguousModelledParticipantComparator to know if two biological participants are equals.- Parameters:
component1
- aModelledParticipant
object.component2
- aModelledParticipant
object.- Returns:
- true if the two biological participants are equal
-
-