Project

General

Profile

Actions

bug #6311

closed

Refactor IdentifiableEntity.compareTo method

Added by Andreas Müller over 7 years ago. Updated about 7 years ago.

Status:
Rejected
Priority:
Highest
Category:
cdmlib
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Severity:
normal
Found in Version:

Description

The IdentifiableEntity.compareTo method needs to be updated.

First of all I added the test of equality of the uuids.

Next step would be the problem if the name of two taxa is the same and the sec is the same (for example both taxa don't have a sec ref) the method would return 0, but this should happen only if the taxa are really equal. Normaly this should not happen but may be the last comparison should be a comparison of the created or updated date?


Related issues

Related to EDIT - feature request #922: Implement compareTo method in IdentifiableEntity properlyClosedAndreas Müller

Actions
Copied from EDIT - task #4232: Check all Comparators for fulfilling the Comparator contractClosedKatja Luther

Actions
Actions

Also available in: Atom PDF