Class UnambiguousExactMoleculeEffectorComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.cooperativity.MoleculeEffectorComparator
-
- psidev.psi.mi.jami.utils.comparator.cooperativity.UnambiguousExactMoleculeEffectorComparator
-
- All Implemented Interfaces:
Comparator<MoleculeEffector>
public class UnambiguousExactMoleculeEffectorComparator extends MoleculeEffectorComparator
Unambiguous exact Comparator for MoleculeEffector. It is using a UnambiguousExactModelledEntityComparator to compare the molecule- Since:
30/05/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousExactMoleculeEffectorComparator()
Constructor for UnambiguousExactMoleculeEffectorComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(MoleculeEffector molecule1, MoleculeEffector molecule2)
Use UnambiguousExactMoleculeEffectorComparator to know if two moleculeEffectors are equals.int
compare(MoleculeEffector molecule1, MoleculeEffector molecule2)
It is using a UnambiguousExactModelledEntityComparator to compare the moleculeUnambiguousExactModelledEntityComparator
getParticipantComparator()
Getter for the fieldparticipantComparator
.static int
hashCode(MoleculeEffector effector)
hashCode-
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
-
getParticipantComparator
public UnambiguousExactModelledEntityComparator getParticipantComparator()
Getter for the field
participantComparator
.- Overrides:
getParticipantComparator
in classMoleculeEffectorComparator
- Returns:
- a
ModelledEntityComparator
object.
-
compare
public int compare(MoleculeEffector molecule1, MoleculeEffector molecule2)
It is using a UnambiguousExactModelledEntityComparator to compare the molecule- Specified by:
compare
in interfaceComparator<MoleculeEffector>
- Overrides:
compare
in classMoleculeEffectorComparator
- Parameters:
molecule1
- aMoleculeEffector
object.molecule2
- aMoleculeEffector
object.- Returns:
- a int.
-
areEquals
public static boolean areEquals(MoleculeEffector molecule1, MoleculeEffector molecule2)
Use UnambiguousExactMoleculeEffectorComparator to know if two moleculeEffectors are equals.- Parameters:
molecule1
- aMoleculeEffector
object.molecule2
- aMoleculeEffector
object.- Returns:
- true if the two moleculeEffectors are equal
-
hashCode
public static int hashCode(MoleculeEffector effector)
hashCode
- Parameters:
effector
- aMoleculeEffector
object.- Returns:
- the hashcode consistent with the equals method for this comparator
-
-