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