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 booleanareEquals(ModelledParticipant component1, ModelledParticipant component2)Use UnambiguousModelledParticipantComparator to know if two biological participants are equals.intcompare(ModelledParticipant component1, ModelledParticipant component2)It will compare the basic properties of a biological participant using UnambiguousParticipantBaseComparator.UnambiguousModelledParticipantPoolComparatorgetParticipantPoolComparator()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:ModelledParticipantComparatorgetParticipantPoolComparator
- Overrides:
getParticipantPoolComparatorin classModelledParticipantComparator- Returns:
- a
ModelledParticipantPoolComparatorobject.
-
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:
comparein interfaceComparator<ModelledParticipant>- Overrides:
comparein classModelledParticipantComparator- Parameters:
component1- aModelledParticipantobject.component2- aModelledParticipantobject.- Returns:
- a int.
-
areEquals
public static boolean areEquals(ModelledParticipant component1, ModelledParticipant component2)
Use UnambiguousModelledParticipantComparator to know if two biological participants are equals.- Parameters:
component1- aModelledParticipantobject.component2- aModelledParticipantobject.- Returns:
- true if the two biological participants are equal
-
-