Enum Visibility
- java.lang.Object
-
- java.lang.Enum<Visibility>
-
- org.springframework.social.google.api.calendar.Visibility
-
- All Implemented Interfaces:
Serializable,Comparable<Visibility>
public enum Visibility extends Enum<Visibility>
Enumeration representing the visibility of an event.- Author:
- Martin Wink
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONFIDENTIAL"confidential" - The event is private.DEFAULT"default" - Uses the default visibility for events on the calendar.PRIVATE"private" - The event is private and only event attendees may view event details.PUBLIC"public" - The event is public and event details are visible to all readers of the calendar.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VisibilityvalueOf(String name)Returns the enum constant of this type with the specified name.static Visibility[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 nameNullPointerException- if the argument is null
-
-