Class UnambiguousFeatureBaseComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.feature.FeatureBaseComparator
-
- psidev.psi.mi.jami.utils.comparator.feature.UnambiguousFeatureBaseComparator
-
- All Implemented Interfaces:
Comparator<Feature>
public class UnambiguousFeatureBaseComparator extends FeatureBaseComparator
Unambiguous feature comparator. It will look first at the feature shortnames (case insensitive). Then, it will compare the feature types using a UnambiguousCvTermComparator. If the feature types are the same, it will compare interactionEffect and then interactionDependency using UnambiguousCvTermComparator. Then it will compare interpro identifier and if the features do not have an interpro identifier, it will look for at the identifiers in the feature identifiers using UnambiguousIdentifierComparator. Finally, it will look at the ranges using UnambiguousRangeComparator.- Since:
16/01/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousFeatureBaseComparator()
Creates a new UnambiguousFeatureBaseComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(Feature feature1, Feature feature2)
Use UnambiguousFeatureBaseComparator to know if two features are equals.UnambiguousCvTermComparator
getCvTermComparator()
getCvTermComparatorUnambiguousExternalIdentifierComparator
getIdentifierComparator()
getIdentifierComparatorstatic int
hashCode(Feature feature)
hashCode-
Methods inherited from class psidev.psi.mi.jami.utils.comparator.feature.FeatureBaseComparator
compare, getExternalIdentifierCollectionComparator, getRangeCollectionComparator
-
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
-
UnambiguousFeatureBaseComparator
public UnambiguousFeatureBaseComparator()
Creates a new UnambiguousFeatureBaseComparator. It will use a UnambiguousCvTermComparator to compare feature types and range status, a UnambiguousExternalIdentifierComparator to compare identifiers and a UnambiguousRangeComparator to compare ranges
-
-
Method Detail
-
getCvTermComparator
public UnambiguousCvTermComparator getCvTermComparator()
getCvTermComparator
- Overrides:
getCvTermComparator
in classFeatureBaseComparator
- Returns:
- a
UnambiguousCvTermComparator
object.
-
getIdentifierComparator
public UnambiguousExternalIdentifierComparator getIdentifierComparator()
getIdentifierComparator
- Overrides:
getIdentifierComparator
in classFeatureBaseComparator
- Returns:
- a
UnambiguousExternalIdentifierComparator
object.
-
areEquals
public static boolean areEquals(Feature feature1, Feature feature2)
Use UnambiguousFeatureBaseComparator to know if two features are equals.
-
-