Class UnambiguousExactInteractorPoolComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.interactor.InteractorPoolComparator
-
- psidev.psi.mi.jami.utils.comparator.interactor.UnambiguousExactInteractorPoolComparator
-
- All Implemented Interfaces:
Comparator<InteractorPool>
public class UnambiguousExactInteractorPoolComparator extends InteractorPoolComparator
Unambiguous exact InteractorPoolComparator. It will first compare the basic interactor properties using UnambiguousExactInteractorBaseComparator Then it will compare the collection of Interactors using UnambiguousExactInteractorBaseComparator- Since:
17/01/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousExactInteractorPoolComparator()Creates a new UnambiguousExactInteractorPoolComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanareEquals(InteractorPool candidat1, InteractorPool candidat2)Use UnambiguousExactInteractorPoolComparator to know if two interactorCandidates are equals.intcompare(InteractorPool candidat1, InteractorPool candidat2)It will first compare the collection of Interactors using InteractorComparatorUnambiguousExactInteractorBaseComparatorgetInteractorBaseComparator()Getter for the fieldinteractorBaseComparator.-
Methods inherited from class psidev.psi.mi.jami.utils.comparator.interactor.InteractorPoolComparator
getInteractorCollectionComparator
-
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
-
compare
public int compare(InteractorPool candidat1, InteractorPool candidat2)
Description copied from class:InteractorPoolComparatorIt will first compare the collection of Interactors using InteractorComparator- Specified by:
comparein interfaceComparator<InteractorPool>- Overrides:
comparein classInteractorPoolComparator- Parameters:
candidat1- aInteractorPoolobject.candidat2- aInteractorPoolobject.- Returns:
- a int.
-
getInteractorBaseComparator
public UnambiguousExactInteractorBaseComparator getInteractorBaseComparator()
Getter for the field
interactorBaseComparator.- Overrides:
getInteractorBaseComparatorin classInteractorPoolComparator- Returns:
- a
Comparatorobject.
-
areEquals
public static boolean areEquals(InteractorPool candidat1, InteractorPool candidat2)
Use UnambiguousExactInteractorPoolComparator to know if two interactorCandidates are equals.- Parameters:
candidat1- aInteractorPoolobject.candidat2- aInteractorPoolobject.- Returns:
- true if the two interactorCandidates are equal
-
-