Class DefaultPublicationComparator


  • public class DefaultPublicationComparator
    extends Object
    Default publication comparator It will only look at IMEx identifiers if both are set. If one IMEx identifier is not set and both identifiers are set, it will only look at the identifiers using DefaultExternalIdentifierComparator. If one publication identifier is not set, it will look at first publication title (case insensitive), then the authors (order is taken into account), then the journal (case insensitive) and finally the publication date. - Two publications which are null are equals
    Since:
    21/12/12
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • DefaultPublicationComparator

        public DefaultPublicationComparator()
    • Method Detail

      • areEquals

        public static boolean areEquals​(Publication publication1,
                                        Publication publication2)
        Use DefaultPublicationComparator to know if two publications are equals.
        Parameters:
        publication1 - a Publication object.
        publication2 - a Publication object.
        Returns:
        true if the two publications are equal