Class DefaultFeatureBaseComparator


  • public class DefaultFeatureBaseComparator
    extends Object
    Default feature comparator. It will look first at the feature shortnames if both shortnames are set (case insensitive). Then, it will compare the feature types using a DefaultCvTermComparator. If the feature types are the same, it will compare interactionEffect and then interactionDependency using DefaultCvTermComparator. Then it will look for at least one same identifier in the feature identifiers using DefaultExternalIdentifierComparator if both feature identifiers are not empty. If at least ont feature identifier is the same, it will look at the ranges using DefaultRangeAndResultingSequenceComparator.
    Since:
    16/01/13
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • DefaultFeatureBaseComparator

        public DefaultFeatureBaseComparator()
    • Method Detail

      • areEquals

        public static boolean areEquals​(Feature feature1,
                                        Feature feature2)
        Use DefaultFeatureBaseComparator to know if two features are equals.
        Parameters:
        feature1 - a Feature object.
        feature2 - a Feature object.
        Returns:
        true if the two features are equal