Class ModelledFeatureComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.feature.ModelledFeatureComparator
-
- All Implemented Interfaces:
Comparator<ModelledFeature>
- Direct Known Subclasses:
UnambiguousModelledFeaturecomparator
public class ModelledFeatureComparator extends Object implements Comparator<ModelledFeature>
Basic ModelledFeature comparator. It will use a AbstractFeatureBaseComparator to compare basic properties of a feature. This comparator will ignore all the other properties of a biological feature.- Since:
16/01/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description ModelledFeatureComparator(Comparator<Feature> featureComparator)
Creates a new ModelledFeatureComparator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(ModelledFeature biologicalFeature1, ModelledFeature biologicalFeature2)
It will use a AbstractFeatureBaseComparator to compare basic properties of a feature.Comparator<Feature>
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
-
ModelledFeatureComparator
public ModelledFeatureComparator(Comparator<Feature> featureComparator)
Creates a new ModelledFeatureComparator.- Parameters:
featureComparator
- : feature comparator required for comparing basic feature properties
-
-
Method Detail
-
getFeatureComparator
public Comparator<Feature> getFeatureComparator()
Getter for the field
featureComparator
.- Returns:
- a
Comparator
object.
-
compare
public int compare(ModelledFeature biologicalFeature1, ModelledFeature biologicalFeature2)
It will use a AbstractFeatureBaseComparator to compare basic properties of a feature. This comparator will ignore all the other properties of a biological feature.- Specified by:
compare
in interfaceComparator<ModelledFeature>
- Parameters:
biologicalFeature1
- aModelledFeature
object.biologicalFeature2
- aModelledFeature
object.- Returns:
- a int.
-
-