Package emissary.command.converter
Class WorkspaceSortModeConverter
- java.lang.Object
-
- emissary.command.converter.WorkspaceSortModeConverter
-
- All Implemented Interfaces:
picocli.CommandLine.ITypeConverter<Comparator<WorkBundle>>
public class WorkspaceSortModeConverter extends Object implements picocli.CommandLine.ITypeConverter<Comparator<WorkBundle>>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WorkspaceSortModeConverter.LargestFirstComparator
Order the queue by the largest work bundle (in aggregate file size).static class
WorkspaceSortModeConverter.OldestFirstComparator
Order the queue by the oldest file modification time in the bundles.static class
WorkspaceSortModeConverter.SmallestFirstComparator
Order the queue by the smallest work bundle (in aggregate file size).static class
WorkspaceSortModeConverter.YoungestFirstComparator
Order the queue by the youngest/most-recent file modification time in the bundles.
-
Field Summary
Fields Modifier and Type Field Description static String
LARGEST_FIRST
static String
OLDEST_FIRST
static String
SMALLEST_FIRST
static String
YOUNGEST_FIRST
-
Constructor Summary
Constructors Constructor Description WorkspaceSortModeConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Comparator<WorkBundle>
convert(String value)
-
-
-
Field Detail
-
YOUNGEST_FIRST
public static final String YOUNGEST_FIRST
- See Also:
- Constant Field Values
-
OLDEST_FIRST
public static final String OLDEST_FIRST
- See Also:
- Constant Field Values
-
SMALLEST_FIRST
public static final String SMALLEST_FIRST
- See Also:
- Constant Field Values
-
LARGEST_FIRST
public static final String LARGEST_FIRST
- See Also:
- Constant Field Values
-
-
Method Detail
-
convert
public Comparator<WorkBundle> convert(String value)
- Specified by:
convert
in interfacepicocli.CommandLine.ITypeConverter<Comparator<WorkBundle>>
-
-