| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Map | |
| private static final List | |
| private static final int | FD
Pattern contains day group |
| private static final int | FLY
Pattern contains long year group |
| private static final int | FM
Pattern contains month digit group |
| private static final int | FMN
Pattern contains month name group |
| private static final int | FS
Pattern contains day and month that might be switched if locale demands it |
| private static final int | FSY
Pattern contains short year group |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | Returns: true if the day should be given before the month,
false otherwisethe locale locale)Returns |
| private static Map | Returns: the mapthe locale locale)Create a map that maps short and long month names from a given locale to their ordinal |
| private static List | Returns: the patternsthe locale locale)Creates regular expression patterns for the given locale |
| public static TemporalAccessor | |
| public static TemporalAccessor | Returns: the parsed datethe string containing the date date, Locale the locale to use for parsing (used to parse month names
and to determine if the locale prefers the month to be given before the
day in the string to parse or the other way around) locale)Parse a string containing a date in almost any known international format. |
| englishMonthIndexes | back to summary |
|---|---|
| private static final Map<String, Long> englishMonthIndexes | |
| englishPatterns | back to summary |
|---|---|
| private static final List<AnyDateParser. | |
| FD | back to summary |
|---|---|
| private static final int FD Pattern contains day group | |
| FLY | back to summary |
|---|---|
| private static final int FLY Pattern contains long year group | |
| FM | back to summary |
|---|---|
| private static final int FM Pattern contains month digit group | |
| FMN | back to summary |
|---|---|
| private static final int FMN Pattern contains month name group | |
| FS | back to summary |
|---|---|
| private static final int FS Pattern contains day and month that might be switched if locale demands it | |
| FSY | back to summary |
|---|---|
| private static final int FSY Pattern contains short year group | |
| GROUPNAME_DAY | back to summary |
|---|---|
| private static final String GROUPNAME_DAY | |
| GROUPNAME_LONGYEAR | back to summary |
|---|---|
| private static final String GROUPNAME_LONGYEAR | |
| GROUPNAME_MONTH | back to summary |
|---|---|
| private static final String GROUPNAME_MONTH | |
| GROUPNAME_MONTHNAME | back to summary |
|---|---|
| private static final String GROUPNAME_MONTHNAME | |
| GROUPNAME_SHORTYEAR | back to summary |
|---|---|
| private static final String GROUPNAME_SHORTYEAR | |
| AnyDateParser | back to summary |
|---|---|
| public AnyDateParser() | |
| dayBeforeMonth | back to summary |
|---|---|
| private static boolean dayBeforeMonth(Locale locale) Returns
| |
| makeMonthIndexes | back to summary |
|---|---|
| private static Map Create a map that maps short and long month names from a given locale to their ordinal | |
| makePatterns | back to summary |
|---|---|
| private static List Creates regular expression patterns for the given locale
| |
| parse | back to summary |
|---|---|
| public static TemporalAccessor parse(String date) throws IllegalArgumentException Parse a string containing a date in almost any known international format.
Parses at most year, month, and date and returns them in a
| |
| parse | back to summary |
|---|---|
| public static TemporalAccessor parse(String date, Locale locale) throws IllegalArgumentException Parse a string containing a date in almost any known international format.
Parses at most year, month, and date and returns them in a
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int | groupNames
A bitmask specifying which group names are used in the pattern |
| pack-priv final Pattern | p
The pattern |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| groupNames | back to summary |
|---|---|
| pack-priv final int groupNames A bitmask specifying which group names are used in the pattern | |
| p | back to summary |
|---|---|
| pack-priv final Pattern p The pattern | |
| CompiledPattern | back to summary |
|---|---|
| pack-priv CompiledPattern(Pattern p, int groupNames) | |