Class UnambiguousExactInteractorBaseComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.interactor.ExactInteractorBaseComparator
-
- psidev.psi.mi.jami.utils.comparator.interactor.UnambiguousExactInteractorBaseComparator
-
- All Implemented Interfaces:
Comparator<Interactor>
public class UnambiguousExactInteractorBaseComparator extends ExactInteractorBaseComparator
Unambiguous Interactor base comparator. It will first compare the interactor types using UnambiguousCvTermComparator. If both types are equal, it will compare organisms using OrganismTaxIdComparator. If both organisms are equal, it will use a UnambiguousInteractorBaseComparator to compare basic Interactor properties.- Since:
17/01/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousExactInteractorBaseComparator()
Creates a new UnambiguousExactInteractorBaseComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(Interactor interactor1, Interactor interactor2)
Use UnambiguousExacttInteractorBaseComparator to know if two interactors are equals.UnambiguousInteractorBaseComparator
getInteractorBaseComparator()
getInteractorBaseComparatorUnambiguousCvTermComparator
getTypeComparator()
getTypeComparatorstatic int
hashCode(Interactor interactor)
hashCode-
Methods inherited from class psidev.psi.mi.jami.utils.comparator.interactor.ExactInteractorBaseComparator
compare, getOrganismComparator
-
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
-
-
-
-
Constructor Detail
-
UnambiguousExactInteractorBaseComparator
public UnambiguousExactInteractorBaseComparator()
Creates a new UnambiguousExactInteractorBaseComparator. It will use a UnambiguousInteractorBaseComparator to compare basic interactor properties, a OrganismTaxIdComparator to compare organisms and a UnambiguousCvTermComparator to compare checksum types and interactor types
-
-
Method Detail
-
getInteractorBaseComparator
public UnambiguousInteractorBaseComparator getInteractorBaseComparator()
getInteractorBaseComparator
- Overrides:
getInteractorBaseComparator
in classExactInteractorBaseComparator
- Returns:
- a
UnambiguousInteractorBaseComparator
object.
-
getTypeComparator
public UnambiguousCvTermComparator getTypeComparator()
getTypeComparator
- Overrides:
getTypeComparator
in classExactInteractorBaseComparator
- Returns:
- a
UnambiguousCvTermComparator
object.
-
areEquals
public static boolean areEquals(Interactor interactor1, Interactor interactor2)
Use UnambiguousExacttInteractorBaseComparator to know if two interactors are equals.- Parameters:
interactor1
- aInteractor
object.interactor2
- aInteractor
object.- Returns:
- true if the two interactors are equal
-
hashCode
public static int hashCode(Interactor interactor)
hashCode
- Parameters:
interactor
- aInteractor
object.- Returns:
- the hashcode consistent with the equals method for this comparator
-
-