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 classWorkspaceSortModeConverter.LargestFirstComparatorOrder the queue by the largest work bundle (in aggregate file size).static classWorkspaceSortModeConverter.OldestFirstComparatorOrder the queue by the oldest file modification time in the bundles.static classWorkspaceSortModeConverter.SmallestFirstComparatorOrder the queue by the smallest work bundle (in aggregate file size).static classWorkspaceSortModeConverter.YoungestFirstComparatorOrder the queue by the youngest/most-recent file modification time in the bundles.
-
Field Summary
Fields Modifier and Type Field Description static StringLARGEST_FIRSTstatic StringOLDEST_FIRSTstatic StringSMALLEST_FIRSTstatic StringYOUNGEST_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:
convertin interfacepicocli.CommandLine.ITypeConverter<Comparator<WorkBundle>>
-
-