Class DefaultPublicationComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.publication.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 Summary
Constructors Constructor Description DefaultPublicationComparator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(Publication publication1, Publication publication2)
Use DefaultPublicationComparator to know if two publications are equals.
-
-
-
Method Detail
-
areEquals
public static boolean areEquals(Publication publication1, Publication publication2)
Use DefaultPublicationComparator to know if two publications are equals.- Parameters:
publication1
- aPublication
object.publication2
- aPublication
object.- Returns:
- true if the two publications are equal
-
-