Class GenericFileDefaultSorter


  • public final class GenericFileDefaultSorter
    extends Object
    Default file sorter.
    • Method Detail

      • sortByFileLanguage

        public static Comparator<org.apache.camel.Exchange> sortByFileLanguage​(org.apache.camel.CamelContext context,
                                                                               String expression,
                                                                               boolean reverse)
        Returns a new sory by file language expression
        Parameters:
        context - the camel context
        expression - the file language expression
        reverse - true to reverse order
        Returns:
        the comparator
      • sortByFileLanguage

        public static Comparator<org.apache.camel.Exchange> sortByFileLanguage​(org.apache.camel.CamelContext context,
                                                                               String expression,
                                                                               boolean reverse,
                                                                               boolean ignoreCase)
        Returns a new sory by file language expression
        Parameters:
        context - the camel context
        expression - the file language expression
        reverse - true to reverse order
        ignoreCase - ignore case if comparing strings
        Returns:
        the comparator
      • sortByFileLanguage

        public static Comparator<org.apache.camel.Exchange> sortByFileLanguage​(org.apache.camel.CamelContext context,
                                                                               String expression,
                                                                               boolean reverse,
                                                                               boolean ignoreCase,
                                                                               Comparator<org.apache.camel.Exchange> nested)
        Returns a new sort by file language expression
        Parameters:
        context - the camel context
        expression - the file language expression
        reverse - true to reverse order
        ignoreCase - ignore case if comparing strings
        nested - nested comparator for sub group sorting, can be null
        Returns:
        the comparator