Package discord4j.core.object.presence
Enum Activity.Flag
- java.lang.Object
-
- java.lang.Enum<Activity.Flag>
-
- discord4j.core.object.presence.Activity.Flag
-
- All Implemented Interfaces:
Serializable
,Comparable<Activity.Flag>
- Enclosing class:
- Activity
public static enum Activity.Flag extends Enum<Activity.Flag>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
static Activity.Flag
of(int value)
static Activity.Flag
valueOf(String name)
Returns the enum constant of this type with the specified name.static Activity.Flag[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final Activity.Flag INSTANCE
-
JOIN
public static final Activity.Flag JOIN
-
SPECTATE
public static final Activity.Flag SPECTATE
-
JOIN_REQUEST
public static final Activity.Flag JOIN_REQUEST
-
SYNC
public static final Activity.Flag SYNC
-
PLAY
public static final Activity.Flag PLAY
-
-
Method Detail
-
values
public static Activity.Flag[] 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 (Activity.Flag c : Activity.Flag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Activity.Flag 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 Activity.Flag of(int value)
-
-