Package org.intermine.template
Class TemplateComparator
- java.lang.Object
-
- org.intermine.template.TemplateComparator
-
- All Implemented Interfaces:
java.util.Comparator<TemplateQuery>
public class TemplateComparator extends java.lang.Object implements java.util.Comparator<TemplateQuery>
Comparator used for ordering templates by title- Author:
- Kim Rutherford
-
-
Constructor Summary
Constructors Constructor Description TemplateComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(TemplateQuery t0, TemplateQuery t1)
Compare two TemplateQuery objects by title, falling back to name if the titles are identical.
-
-
-
Method Detail
-
compare
public int compare(TemplateQuery t0, TemplateQuery t1)
Compare two TemplateQuery objects by title, falling back to name if the titles are identical.- Specified by:
compare
in interfacejava.util.Comparator<TemplateQuery>
-
-