Enum PreferenceType

  • All Implemented Interfaces:
    Serializable, Comparable<PreferenceType>

    public enum PreferenceType
    extends Enum<PreferenceType>
    These are the types of preferences in Profile2.

    We use these when checking if different options are enabled.

    See also EmailType.

    Since:
    1.5
    Author:
    Steve Swinsburg (steve.swinsburg@gmail.com)
    • Enum Constant Detail

      • EMAIL_NOTIFICATION_REQUEST

        public static final PreferenceType EMAIL_NOTIFICATION_REQUEST
      • EMAIL_NOTIFICATION_CONFIRM

        public static final PreferenceType EMAIL_NOTIFICATION_CONFIRM
      • EMAIL_NOTIFICATION_MESSAGE_NEW

        public static final PreferenceType EMAIL_NOTIFICATION_MESSAGE_NEW
      • EMAIL_NOTIFICATION_MESSAGE_REPLY

        public static final PreferenceType EMAIL_NOTIFICATION_MESSAGE_REPLY
      • EMAIL_NOTIFICATION_WALL_EVENT_NEW

        public static final PreferenceType EMAIL_NOTIFICATION_WALL_EVENT_NEW
      • EMAIL_NOTIFICATION_WALL_POST_MY_NEW

        public static final PreferenceType EMAIL_NOTIFICATION_WALL_POST_MY_NEW
      • EMAIL_NOTIFICATION_WALL_POST_CONNECTION_NEW

        public static final PreferenceType EMAIL_NOTIFICATION_WALL_POST_CONNECTION_NEW
      • EMAIL_NOTIFICATION_WALL_STATUS_NEW

        public static final PreferenceType EMAIL_NOTIFICATION_WALL_STATUS_NEW
      • EMAIL_NOTIFICATION_WORKSITE_NEW

        public static final PreferenceType EMAIL_NOTIFICATION_WORKSITE_NEW
      • EMAIL_NOTIFICATION_PROFILE_CHANGE

        public static final PreferenceType EMAIL_NOTIFICATION_PROFILE_CHANGE
    • Method Detail

      • values

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

        public static PreferenceType 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