Class 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 Detail

      • UnambiguousFeatureComparator

        public UnambiguousFeatureComparator()
        Creates a UnambiguousFeatureComparator. It will use a UnambiguousFeatureBaseComparator to compare basic feature properties
    • Method Detail

      • 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 interface Comparator<Feature>
        Overrides:
        compare in class FeatureComparator
        Parameters:
        feature1 - a Feature object.
        feature2 - a Feature object.
        Returns:
        a int.
      • areEquals

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