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 booleanareEquals(ModelledFeature feature1, ModelledFeature feature2)Use UnambiguousModelledFeaturecomparator to know if two biological features are equals.intcompare(ModelledFeature biologicalFeature1, ModelledFeature biologicalFeature2)It will use a AbstractFeatureBaseComparator to compare basic properties of a feature.UnambiguousFeatureBaseComparatorgetFeatureComparator()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- aModelledFeatureobject.feature2- aModelledFeatureobject.- Returns:
- true if the two biological features are equal
-
getFeatureComparator
public UnambiguousFeatureBaseComparator getFeatureComparator()
Getter for the field
featureComparator.- Overrides:
getFeatureComparatorin classModelledFeatureComparator- Returns:
- a
Comparatorobject.
-
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:
comparein interfaceComparator<ModelledFeature>- Overrides:
comparein classModelledFeatureComparator- Parameters:
biologicalFeature1- aModelledFeatureobject.biologicalFeature2- aModelledFeatureobject.- Returns:
- a int.
-
-