Class CooperativityEvidenceComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.cooperativity.CooperativityEvidenceComparator
-
- All Implemented Interfaces:
Comparator<CooperativityEvidence>
- Direct Known Subclasses:
UnambiguousCooperativityEvidenceComparator
public class CooperativityEvidenceComparator extends Object implements Comparator<CooperativityEvidence>
Basic comparator for cooperativityEvidence It will first compare the publications using AbstractPublicationComparator and then the evidenceMethods using AbstractCvTermComparator- Since:
22/05/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description CooperativityEvidenceComparator(Comparator<CvTerm> cvTermComparator, Comparator<Publication> publicationComparator)
Constructor for CooperativityEvidenceComparator.CooperativityEvidenceComparator(CollectionComparator<CvTerm> cvTermComparator, Comparator<Publication> publicationComparator)
Constructor for CooperativityEvidenceComparator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(CooperativityEvidence cooperativityEvidence1, CooperativityEvidence cooperativityEvidence2)
It will first compare the publications using AbstractPublicationComparator and then the evidenceMethods using AbstractCvTermComparatorCollectionComparator<CvTerm>
getCvTermsCollectionComparator()
Getter for the fieldcvTermsCollectionComparator
.Comparator<Publication>
getPublicationComparator()
Getter for the fieldpublicationComparator
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Constructor Detail
-
CooperativityEvidenceComparator
public CooperativityEvidenceComparator(Comparator<CvTerm> cvTermComparator, Comparator<Publication> publicationComparator)
Constructor for CooperativityEvidenceComparator.
- Parameters:
cvTermComparator
- aComparator
object.publicationComparator
- aComparator
object.
-
CooperativityEvidenceComparator
public CooperativityEvidenceComparator(CollectionComparator<CvTerm> cvTermComparator, Comparator<Publication> publicationComparator)
Constructor for CooperativityEvidenceComparator.
- Parameters:
cvTermComparator
- aCollectionComparator
object.publicationComparator
- aComparator
object.
-
-
Method Detail
-
getCvTermsCollectionComparator
public CollectionComparator<CvTerm> getCvTermsCollectionComparator()
Getter for the field
cvTermsCollectionComparator
.- Returns:
- a
CollectionComparator
object.
-
getPublicationComparator
public Comparator<Publication> getPublicationComparator()
Getter for the field
publicationComparator
.- Returns:
- a
Comparator
object.
-
compare
public int compare(CooperativityEvidence cooperativityEvidence1, CooperativityEvidence cooperativityEvidence2)
It will first compare the publications using AbstractPublicationComparator and then the evidenceMethods using AbstractCvTermComparator- Specified by:
compare
in interfaceComparator<CooperativityEvidence>
- Parameters:
cooperativityEvidence1
- aCooperativityEvidence
object.cooperativityEvidence2
- aCooperativityEvidence
object.- Returns:
- a int.
-
-