Enum Visibility

    • Enum Constant Detail

      • DEFAULT

        public static final Visibility DEFAULT
        "default" - Uses the default visibility for events on the calendar. This is the default value.
      • PUBLIC

        public static final Visibility PUBLIC
        "public" - The event is public and event details are visible to all readers of the calendar.
      • PRIVATE

        public static final Visibility PRIVATE
        "private" - The event is private and only event attendees may view event details.
      • CONFIDENTIAL

        public static final Visibility CONFIDENTIAL
        "confidential" - The event is private. This value is provided for compatibility reasons.
    • Method Detail

      • values

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

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