public static ArrayList<DateTimeFormatter> getExtraTimeParsingFormatsForLocale(Locale locale) {
        // Create some variables that we will need.
        String language = locale.getLanguage();
        String[] definedFormats = null;

        // Get the list of extra parsing formats for the language of the locale.
        if ("en".equals(language)) {
            definedFormats = extraParsingFormatsForLanguage_en;
        }

        // If no extra parsing formats were found, then return an empty list.
        ArrayList<DateTimeFormatter> extraParsingFormatters = new ArrayList<DateTimeFormatter>();
        if (definedFormats == null) {
            return extraParsingFormatters;
        }

        // Create the parsing formatters from the defined formats, and add them to the results list.
        DateTimeFormatter formatter;
        for (String formatString : definedFormats) {
            formatter = new DateTimeFormatterBuilder().parseLenient().parseCaseInsensitive().
                    appendPattern(formatString).toFormatter(locale);
            extraParsingFormatters.add(formatter);
        }

        // Return the results.
        return extraParsingFormatters;
    }
public static ArrayList < DateTimeFormatter > getExtraTimeParsingFormatsForLocale ( Locale locale ) { String language = locale . getLanguage ( ) ; String [ ] definedFormats = null ; if ( "en" . equals ( language ) ) { definedFormats = extraParsingFormatsForLanguage_en ; } ArrayList < DateTimeFormatter > extraParsingFormatters = new ArrayList < DateTimeFormatter > ( ) ; if ( definedFormats == null ) { return extraParsingFormatters ; } DateTimeFormatter formatter ; for ( String formatString : definedFormats ) { formatter = new DateTimeFormatterBuilder ( ) . parseLenient ( ) . parseCaseInsensitive ( ) . appendPattern ( formatString ) . toFormatter ( locale ) ; extraParsingFormatters . add ( formatter ) ; } return extraParsingFormatters ; }
getExtraTimeParsingFormatsForLocale, This will return a list of extra parsing formatters for
the specified locale. If no extra formatters are found, then this will return an empty list.
(This will never return null.)