Class DefaultPositionComparator


  • public class DefaultPositionComparator
    extends Object
    Default PositionComparator. It will first compare the status (using DefaultCvTermComparator) and then will check if the position is undetermined. It will then check the start and the end. - Two positions which are null are equals - Use DefaultCvTermComparator to compare first the position status. - If position status are equals, the undetermined positions are always coming after the determined positions. - If both positions have same status and are undetermined, they are equals - If both positions are not undetermined, compare the start position first and then the end position
    Since:
    19/12/12
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • DefaultPositionComparator

        public DefaultPositionComparator()
    • Method Detail

      • areEquals

        public static boolean areEquals​(Position position1,
                                        Position position2)
        Use DefaultPositionComparator to know if two positions are equals.
        Parameters:
        position1 - a Position object.
        position2 - a Position object.
        Returns:
        true if the two positions are equal