public class MonthMap extends Object
| Constructor and Description |
|---|
MonthMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMonth(String abbrev,
Integer monthNumber)
Registers a new month abbreviation.
|
static MonthMap |
fromAllLocales() |
boolean |
isEmpty() |
Integer |
monthIndex(String candidateMonth)
Returns a multi-language lookup based on the first 3 or 4 characters of a month
|
public static MonthMap fromAllLocales()
public Integer monthIndex(String candidateMonth)
candidateMonth - A word whose first 3 or 4 letters match any known month abbreviationpublic void addMonth(String abbrev, Integer monthNumber)
abbrev - Month abbreviation (must be either 3 or 4 characters)monthNumber - In range 1..12public boolean isEmpty()
Copyright © 2014. All Rights Reserved.