Enum ETimeScale

    • Method Detail

      • values

        public static ETimeScale[] 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 (ETimeScale c : ETimeScale.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ETimeScale 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
      • getI18nKey

        public String getI18nKey()
        Get the i18n key of the timescale.
        Returns:
        the i18n key (never null)
      • getI18nPatternKey

        public String getI18nPatternKey()
        Get the i18n key of the pattern used for the x-axis.
        Returns:
        the i18n key (null for dynamic user-defined date ranges)
      • getI18nSheetKey

        public String getI18nSheetKey()
        Get the i18n key of the excel sheet name.
        Returns:
        the i18n key (null for dynamic user-defined date ranges)
      • in

        public boolean in​(ETimeScale... elements)
        Parameters:
        elements - the enum elements to check this element against
        Returns:
        true if this element is contained in the set of the provided elements, otherwise false