Enum 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 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 name
        java.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()