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
|
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