Class DefaultRangeAndResultingSequenceComparator


  • public class DefaultRangeAndResultingSequenceComparator
    extends Object
    Default RangeComparator. It compares first the start Position, then the end Position using a DefaultPositionComparator, If start/end positions are equals, the linked ranges will always come before the ranges that are not linked. Then, if the positions and linked boolean are the same, it will compare the resultingSequences using ResultingSequenceComparator - Two ranges which are null are equals
    Since:
    21/05/13
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • DefaultRangeAndResultingSequenceComparator

        public DefaultRangeAndResultingSequenceComparator()
    • 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