Package org.cyclos.impl.system
Class ExportFormatsComparator
- java.lang.Object
-
- org.cyclos.impl.system.ExportFormatsComparator
-
- All Implemented Interfaces:
Comparator<ExportFormat>
public class ExportFormatsComparator extends Object implements Comparator<ExportFormat>
This comparator will sort first the built-in export formats (in the order defined inBuiltInExportFormatenum), then the global formats (alphabetically), then the network formats (alphabetically).
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(ExportFormat c1, ExportFormat c2)static ExportFormatsComparatorgetInstance()-
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
-
-
-
-
Method Detail
-
getInstance
public static ExportFormatsComparator getInstance()
-
compare
public int compare(ExportFormat c1, ExportFormat c2)
- Specified by:
comparein interfaceComparator<ExportFormat>
-
-