Class FeatureModificationEffectorComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.cooperativity.FeatureModificationEffectorComparator
-
- All Implemented Interfaces:
Comparator<FeatureModificationEffector>
- Direct Known Subclasses:
UnambiguousFeatureModificationEffectorComparator
public class FeatureModificationEffectorComparator extends Object implements Comparator<FeatureModificationEffector>
Basic comparator for FeatureModificationEffector. It will use a ModelledFeatureComparator to compare the feature.- Since:
30/05/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description FeatureModificationEffectorComparator(ModelledFeatureComparator featureComparator)
Constructor for FeatureModificationEffectorComparator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(FeatureModificationEffector featureModificationEffector1, FeatureModificationEffector featureModificationEffector2)
compareModelledFeatureComparator
getFeatureComparator()
Getter for the fieldfeatureComparator
.-
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
-
FeatureModificationEffectorComparator
public FeatureModificationEffectorComparator(ModelledFeatureComparator featureComparator)
Constructor for FeatureModificationEffectorComparator.
- Parameters:
featureComparator
- aModelledFeatureComparator
object.
-
-
Method Detail
-
getFeatureComparator
public ModelledFeatureComparator getFeatureComparator()
Getter for the field
featureComparator
.- Returns:
- a
ModelledFeatureComparator
object.
-
compare
public int compare(FeatureModificationEffector featureModificationEffector1, FeatureModificationEffector featureModificationEffector2)
compare
- Specified by:
compare
in interfaceComparator<FeatureModificationEffector>
- Parameters:
featureModificationEffector1
- aFeatureModificationEffector
object.featureModificationEffector2
- aFeatureModificationEffector
object.- Returns:
- a int.
-
-