Package discord4j.core.object.entity
Enum ScheduledEvent.EntityType
- java.lang.Object
-
- java.lang.Enum<ScheduledEvent.EntityType>
-
- discord4j.core.object.entity.ScheduledEvent.EntityType
-
- All Implemented Interfaces:
Serializable
,Comparable<ScheduledEvent.EntityType>
- Enclosing class:
- ScheduledEvent
public static enum ScheduledEvent.EntityType extends Enum<ScheduledEvent.EntityType>
Represents a scheduled event's entity type
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXTERNAL
STAGE_INSTANCE
UNKNOWN
VOICE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
static ScheduledEvent.EntityType
of(int value)
static ScheduledEvent.EntityType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ScheduledEvent.EntityType[]
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.EntityType UNKNOWN
-
STAGE_INSTANCE
public static final ScheduledEvent.EntityType STAGE_INSTANCE
-
VOICE
public static final ScheduledEvent.EntityType VOICE
-
EXTERNAL
public static final ScheduledEvent.EntityType EXTERNAL
-
-
Method Detail
-
values
public static ScheduledEvent.EntityType[] 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.EntityType c : ScheduledEvent.EntityType.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.EntityType 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.EntityType of(int value)
-
-