public final class GenericFileDefaultSorter extends Object
Modifier and Type | Method and Description |
---|---|
static Comparator<Exchange> |
sortByFileLanguage(CamelContext context,
String expression,
boolean reverse)
Returns a new sory by file language expression
|
static Comparator<Exchange> |
sortByFileLanguage(CamelContext context,
String expression,
boolean reverse,
boolean ignoreCase)
Returns a new sory by file language expression
|
static Comparator<Exchange> |
sortByFileLanguage(CamelContext context,
String expression,
boolean reverse,
boolean ignoreCase,
Comparator<Exchange> nested)
Returns a new sort by file language expression
|
static Comparator<GenericFile<?>> |
sortByLastModified(boolean reverse)
Returns a new sort by last modified (newest first)
|
static Comparator<GenericFile<?>> |
sortByName(boolean reverse)
Returns a new sort by name
|
static Comparator<GenericFile<?>> |
sortByPathName(boolean reverse)
Returns a new sort by path name
|
static Comparator<GenericFile<?>> |
sortBySize(boolean reverse)
Returns a new sort by file size (smallest first)
|
public static Comparator<GenericFile<?>> sortByName(boolean reverse)
public static Comparator<GenericFile<?>> sortByPathName(boolean reverse)
public static Comparator<GenericFile<?>> sortByLastModified(boolean reverse)
public static Comparator<GenericFile<?>> sortBySize(boolean reverse)
public static Comparator<Exchange> sortByFileLanguage(CamelContext context, String expression, boolean reverse)
context
- the camel contextexpression
- the file language expressionreverse
- true to reverse orderpublic static Comparator<Exchange> sortByFileLanguage(CamelContext context, String expression, boolean reverse, boolean ignoreCase)
context
- the camel contextexpression
- the file language expressionreverse
- true to reverse orderignoreCase
- ignore case if comparing stringspublic static Comparator<Exchange> sortByFileLanguage(CamelContext context, String expression, boolean reverse, boolean ignoreCase, Comparator<Exchange> nested)
context
- the camel contextexpression
- the file language expressionreverse
- true to reverse orderignoreCase
- ignore case if comparing stringsnested
- nested comparator for sub group sorting, can be nullApache Camel