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 booleanareEquals(ModelledParticipant component1, ModelledParticipant component2)Use UnambiguousExactModelledParticipantComparator to know if two biological participant are equals.intcompare(ModelledParticipant component1, ModelledParticipant component2)It will compare the basic properties of a component using UnambiguousExactParticipantBaseComparator.UnambiguousExactModelledParticipantPoolComparatorgetParticipantPoolComparator()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- aModelledParticipantobject.component2- aModelledParticipantobject.- Returns:
- true if the two biological participant are equal
-
getParticipantPoolComparator
public UnambiguousExactModelledParticipantPoolComparator 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 component using UnambiguousExactParticipantBaseComparator. This comparator will ignore all the other properties of a component.- Specified by:
comparein interfaceComparator<ModelledParticipant>- Overrides:
comparein classModelledParticipantComparator- Parameters:
component1- aModelledParticipantobject.component2- aModelledParticipantobject.- Returns:
- a int.
-
-