Class DefaultRangeComparator


  • public class DefaultRangeComparator
    extends Object
    Default RangeComparator. It compares first the start Position, then the end Position using a DefaultPositionComparator, If start/end positions are equals, compare if the ranges are linked. - Two ranges which are null are equals
    Since:
    21/12/12
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • DefaultRangeComparator

        public DefaultRangeComparator()
    • Method Detail

      • areEquals

        public static boolean areEquals​(Range range1,
                                        Range range2)
        Use DefaultRangeComparator to know if two ranges are equals.
        Parameters:
        range1 - a Range object.
        range2 - a Range object.
        Returns:
        true if the two ranges are equal