Package com.github.alex1304.jdash.entity
Enum PrivacySetting
- java.lang.Object
-
- java.lang.Enum<PrivacySetting>
-
- com.github.alex1304.jdash.entity.PrivacySetting
-
- All Implemented Interfaces:
Serializable
,Comparable<PrivacySetting>
public enum PrivacySetting extends Enum<PrivacySetting>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLOSED
OPENED_TO_ALL
OPENED_TO_FRIENDS_ONLY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PrivacySetting
valueOf(String name)
Returns the enum constant of this type with the specified name.static PrivacySetting[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OPENED_TO_ALL
public static final PrivacySetting OPENED_TO_ALL
-
OPENED_TO_FRIENDS_ONLY
public static final PrivacySetting OPENED_TO_FRIENDS_ONLY
-
CLOSED
public static final PrivacySetting CLOSED
-
-
Method Detail
-
values
public static PrivacySetting[] 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 (PrivacySetting c : PrivacySetting.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PrivacySetting 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
-
-