Enum SantanderMonthEnum

java.lang.Object
java.lang.Enum<SantanderMonthEnum>
de.frankmuenster.mahoe.banks.santander.web.SantanderMonthEnum
All Implemented Interfaces:
Serializable, Comparable<SantanderMonthEnum>, java.lang.constant.Constable

public enum SantanderMonthEnum extends Enum<SantanderMonthEnum>
Enum to map and handle Santander Bank month abbreviations
Since:
2.4.0
Author:
Frank Münster
  • Enum Constant Details

  • Method Details

    • values

      public static SantanderMonthEnum[] 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

      public static SantanderMonthEnum valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getNumber

      public static int getNumber(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 String getShortDescription()