Class UnambiguousModelledFeaturecomparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.feature.ModelledFeatureComparator
-
- psidev.psi.mi.jami.utils.comparator.feature.UnambiguousModelledFeaturecomparator
-
- All Implemented Interfaces:
Comparator<ModelledFeature>
public class UnambiguousModelledFeaturecomparator extends ModelledFeatureComparator
Unambiguous ModelledFeature comparator. It will use a UnambiguousFeatureBaseComparator 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 UnambiguousModelledFeaturecomparator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(ModelledFeature feature1, ModelledFeature feature2)
Use UnambiguousModelledFeaturecomparator to know if two biological features are equals.int
compare(ModelledFeature biologicalFeature1, ModelledFeature biologicalFeature2)
It will use a AbstractFeatureBaseComparator to compare basic properties of a feature.UnambiguousFeatureBaseComparator
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
-
-
-
-
Method Detail
-
areEquals
public static boolean areEquals(ModelledFeature feature1, ModelledFeature feature2)
Use UnambiguousModelledFeaturecomparator to know if two biological features are equals.- Parameters:
feature1
- aModelledFeature
object.feature2
- aModelledFeature
object.- Returns:
- true if the two biological features are equal
-
getFeatureComparator
public UnambiguousFeatureBaseComparator getFeatureComparator()
Getter for the field
featureComparator
.- Overrides:
getFeatureComparator
in classModelledFeatureComparator
- 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. It will use a UnambiguousFeatureBaseComparator 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>
- Overrides:
compare
in classModelledFeatureComparator
- Parameters:
biologicalFeature1
- aModelledFeature
object.biologicalFeature2
- aModelledFeature
object.- Returns:
- a int.
-
-