Class UnambiguousMoleculeEffectorComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.cooperativity.MoleculeEffectorComparator
-
- psidev.psi.mi.jami.utils.comparator.cooperativity.UnambiguousMoleculeEffectorComparator
-
- All Implemented Interfaces:
Comparator<MoleculeEffector>
public class UnambiguousMoleculeEffectorComparator extends MoleculeEffectorComparator
Unambiguous Comparator for MoleculeEffector. It is using a UnambiguousModelledEntityComparator to compare the molecule- Since:
30/05/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousMoleculeEffectorComparator()
Constructor for UnambiguousMoleculeEffectorComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(MoleculeEffector molecule1, MoleculeEffector molecule2)
Use UnambiguousMoleculeEffectorComparator to know if two moleculeEffectors are equals.int
compare(MoleculeEffector molecule1, MoleculeEffector molecule2)
It is using a UnambiguousModelledParticipantComparator to compare the moleculeUnambiguousModelledEntityComparator
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 UnambiguousModelledEntityComparator 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 UnambiguousModelledParticipantComparator 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 UnambiguousMoleculeEffectorComparator 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
-
-