Enum SantanderMonthEnum
- All Implemented Interfaces:
Serializable
,Comparable<SantanderMonthEnum>
,java.lang.constant.Constable
Enum to map and handle Santander Bank month abbreviations
- Since:
- 2.4.0
- Author:
- Frank Münster
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionint
static int
Return the number of the month of the shortDescription.static SantanderMonthEnum
Returns the enum constant of this type with the specified name.static SantanderMonthEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
JANUARY
January -
FEBRUARY
February -
MARCH
March -
APRIL
April -
MAY
May -
JUNE
June -
JULY
July -
AUGUST
August -
SEPTEMBER
September -
OCTOBER
October -
NOVEMBER
November -
DEZEMBER
December
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getNumber
Return the number of the month of the shortDescription. January is 0.- Parameters:
shortDescription
- the short description as used on the Santander bank web site.- Returns:
- the month 0 based, or -1 if not found.
-
getNumber
public int getNumber() -
getShortDescription
-