Class OrderFormatDate

  • All Implemented Interfaces:
    OrderFormatDelegate

    public class OrderFormatDate
    extends Object
    implements OrderFormatDelegate
    Standard date ordering delegate implementation. The only "special" need is to treat dates with less than 4-digit year.
    Author:
    Andrea Bollini
    • Constructor Detail

      • OrderFormatDate

        public OrderFormatDate()
    • Method Detail

      • makeSortString

        public String makeSortString​(String value,
                                     String language)
        Description copied from interface: OrderFormatDelegate
        Prepare the appropriate sort string for the given value in the given language. Language should be supplied with the ISO-6390-1 or ISO-639-2 standards. For example "en" or "eng".
        Specified by:
        makeSortString in interface OrderFormatDelegate
        Parameters:
        value - the string value
        language - the language to interpret in
        Returns:
        the sort string