Package discord4j.core.object.entity
Enum ScheduledEvent.PrivacyLevel
- java.lang.Object
-
- java.lang.Enum<ScheduledEvent.PrivacyLevel>
-
- discord4j.core.object.entity.ScheduledEvent.PrivacyLevel
-
- All Implemented Interfaces:
Serializable
,Comparable<ScheduledEvent.PrivacyLevel>
- Enclosing class:
- ScheduledEvent
public static enum ScheduledEvent.PrivacyLevel extends Enum<ScheduledEvent.PrivacyLevel>
Represents a scheduled event's privacy level.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GUILD_ONLY
UNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
static ScheduledEvent.PrivacyLevel
of(int value)
static ScheduledEvent.PrivacyLevel
valueOf(String name)
Returns the enum constant of this type with the specified name.static ScheduledEvent.PrivacyLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final ScheduledEvent.PrivacyLevel UNKNOWN
-
GUILD_ONLY
public static final ScheduledEvent.PrivacyLevel GUILD_ONLY
-
-
Method Detail
-
values
public static ScheduledEvent.PrivacyLevel[] 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 (ScheduledEvent.PrivacyLevel c : ScheduledEvent.PrivacyLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ScheduledEvent.PrivacyLevel 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
-
getValue
public int getValue()
-
of
public static ScheduledEvent.PrivacyLevel of(int value)
-
-