Enum UpdateSchedule

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<UpdateSchedule>

    public enum UpdateSchedule
    extends java.lang.Enum<UpdateSchedule>
    Enumeration class that represents the different update schedules. These values are used in the UpdateScheduleRegistry class.
    • Field Detail

      • ALL_VALUES

        @Deprecated
        public static final UpdateSchedule[] ALL_VALUES
        Deprecated.
        All values of UpdateSchedule for use in a drop-down list.

        Not needed since this class became an enum in install4j 6.

    • Method Detail

      • values

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

        public static UpdateSchedule 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
      • getById

        public static UpdateSchedule getById​(java.lang.String id)
        Returns the UpdateSchedule for a string ID. String IDs for UpdateSchedules are returned by getId()}.
        Parameters:
        id - the ID
        Returns:
        the UpdateSchedule or null if the ID is invalid
      • getId

        public java.lang.String getId()
        Returns the string ID for the UpdateSchedule. This string value can be saved and restored later with the getById(String)} method.
        Returns:
        the ID
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<UpdateSchedule>