Enum SantanderMonthEnum
- java.lang.Object
-
- java.lang.Enum<SantanderMonthEnum>
-
- de.frankmuenster.mahoe.banks.santander.web.SantanderMonthEnum
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SantanderMonthEnum>
public enum SantanderMonthEnum extends java.lang.Enum<SantanderMonthEnum>
Enum to map and handle Santander Bank month abbreviations- Since:
- 2.4.0
- Author:
- Frank Münster
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getNumber()
static int
getNumber(java.lang.String shortDescription)
Return the number of the month of the shortDescription.java.lang.String
getShortDescription()
static SantanderMonthEnum
valueOf(java.lang.String name)
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 Detail
-
JANUARY
public static final SantanderMonthEnum JANUARY
January
-
FEBRUARY
public static final SantanderMonthEnum FEBRUARY
February
-
MARCH
public static final SantanderMonthEnum MARCH
March
-
APRIL
public static final SantanderMonthEnum APRIL
April
-
MAY
public static final SantanderMonthEnum MAY
May
-
JUNE
public static final SantanderMonthEnum JUNE
June
-
JULY
public static final SantanderMonthEnum JULY
July
-
AUGUST
public static final SantanderMonthEnum AUGUST
August
-
SEPTEMBER
public static final SantanderMonthEnum SEPTEMBER
September
-
OCTOBER
public static final SantanderMonthEnum OCTOBER
October
-
NOVEMBER
public static final SantanderMonthEnum NOVEMBER
November
-
DEZEMBER
public static final SantanderMonthEnum DEZEMBER
December
-
-
Method Detail
-
values
public static SantanderMonthEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SantanderMonthEnum c : SantanderMonthEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SantanderMonthEnum valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getNumber
public static int getNumber(java.lang.String shortDescription)
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
public java.lang.String getShortDescription()
-
-