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)