Class UnambiguousFeatureModificationEffectorComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.cooperativity.FeatureModificationEffectorComparator
-
- psidev.psi.mi.jami.utils.comparator.cooperativity.UnambiguousFeatureModificationEffectorComparator
-
- All Implemented Interfaces:
Comparator<FeatureModificationEffector>
public class UnambiguousFeatureModificationEffectorComparator extends FeatureModificationEffectorComparator
Unambiguous comparator for FeatureModificationEffector. It will use a UnambiguousModelledFeatureComparator to compare the feature.- Since:
30/05/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousFeatureModificationEffectorComparator()
Constructor for UnambiguousFeatureModificationEffectorComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(FeatureModificationEffector effector1, FeatureModificationEffector effector2)
Use UnambiguousFeatureModificationEffectorComparator to know if two FeatureModificationEffector are equals.int
compare(FeatureModificationEffector effector1, FeatureModificationEffector effector2)
It will use a UnambiguousModelledFeaturecomparator to compare the feature.UnambiguousModelledFeaturecomparator
getFeatureComparator()
Getter for the fieldfeatureComparator
.static int
hashCode(FeatureModificationEffector 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
-
getFeatureComparator
public UnambiguousModelledFeaturecomparator getFeatureComparator()
Getter for the field
featureComparator
.- Overrides:
getFeatureComparator
in classFeatureModificationEffectorComparator
- Returns:
- a
ModelledFeatureComparator
object.
-
compare
public int compare(FeatureModificationEffector effector1, FeatureModificationEffector effector2)
It will use a UnambiguousModelledFeaturecomparator to compare the feature.- Specified by:
compare
in interfaceComparator<FeatureModificationEffector>
- Overrides:
compare
in classFeatureModificationEffectorComparator
- Parameters:
effector1
- aFeatureModificationEffector
object.effector2
- aFeatureModificationEffector
object.- Returns:
- a int.
-
areEquals
public static boolean areEquals(FeatureModificationEffector effector1, FeatureModificationEffector effector2)
Use UnambiguousFeatureModificationEffectorComparator to know if two FeatureModificationEffector are equals.- Parameters:
effector1
- aFeatureModificationEffector
object.effector2
- aFeatureModificationEffector
object.- Returns:
- true if the two FeatureModificationEffector are equal
-
hashCode
public static int hashCode(FeatureModificationEffector effector)
hashCode
- Parameters:
effector
- aFeatureModificationEffector
object.- Returns:
- the hashcode consistent with the equals method for this comparator
-
-