Class UnambiguousFeatureComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.feature.FeatureComparator
-
- psidev.psi.mi.jami.utils.comparator.feature.UnambiguousFeatureComparator
-
- All Implemented Interfaces:
Comparator<Feature>
public class UnambiguousFeatureComparator extends FeatureComparator
Generic unambiguous feature comparator. Biological features come first and then experimental features. - It uses UnambiguousBiologicalFeatureComparator to compare biological features - It uses UnambiguousFeatureEvidenceComparator to compare experimental features - It uses UnambiguousFeatureBaseComparator to compare basic feature properties- Since:
04/02/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousFeatureComparator()
Creates a UnambiguousFeatureComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(Feature feature1, Feature feature2)
Use UnambiguousFeatureComparator to know if two features are equals.int
compare(Feature feature1, Feature feature2)
Biological features come first and then experimental features.UnambiguousFeatureBaseComparator
getFeatureBaseComparator()
Getter for the fieldfeatureBaseComparator
.-
Methods inherited from class psidev.psi.mi.jami.utils.comparator.feature.FeatureComparator
getBiologicalFeatureComparator, getExperimentalFeatureComparator
-
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
-
getFeatureBaseComparator
public UnambiguousFeatureBaseComparator getFeatureBaseComparator()
Description copied from class:FeatureComparator
Getter for the field
featureBaseComparator
.- Overrides:
getFeatureBaseComparator
in classFeatureComparator
- Returns:
- a
Comparator
object.
-
compare
public int compare(Feature feature1, Feature feature2)
Biological features come first and then experimental features. - It uses UnambiguousBiologicalFeatureComparator to compare biological features - It uses UnambiguousFeatureEvidenceComparator to compare experimental features - It uses UnambiguousFeatureBaseComparator to compare basic feature properties- Specified by:
compare
in interfaceComparator<Feature>
- Overrides:
compare
in classFeatureComparator
- Parameters:
feature1
- aFeature
object.feature2
- aFeature
object.- Returns:
- a int.
-
-