Class AnnotationsCollectionComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.CollectionComparator<Annotation>
-
- psidev.psi.mi.jami.utils.comparator.annotation.AnnotationsCollectionComparator
-
- All Implemented Interfaces:
Comparator<Collection<? extends Annotation>>
public class AnnotationsCollectionComparator extends CollectionComparator<Annotation>
Comparator for collection of Annotations- Since:
20/12/12
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description AnnotationsCollectionComparator(AnnotationComparator annotationComparator)
Creates a new annotation CollectionComparator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotationComparator
getObjectComparator()
Getter for the fieldobjectComparator
.-
Methods inherited from class psidev.psi.mi.jami.utils.comparator.CollectionComparator
compare
-
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
-
AnnotationsCollectionComparator
public AnnotationsCollectionComparator(AnnotationComparator annotationComparator)
Creates a new annotation CollectionComparator. It requires a Comparator for the annotations in the Collection- Parameters:
annotationComparator
- : the annotation comparator
-
-
Method Detail
-
getObjectComparator
public AnnotationComparator getObjectComparator()
Getter for the field
objectComparator
.- Overrides:
getObjectComparator
in classCollectionComparator<Annotation>
- Returns:
- a
Comparator
object.
-
-