Package net.dv8tion.jda.api.utils.cache
Enum CacheFlag
- java.lang.Object
-
- java.lang.Enum<CacheFlag>
-
- net.dv8tion.jda.api.utils.cache.CacheFlag
-
- All Implemented Interfaces:
Serializable
,Comparable<CacheFlag>
public enum CacheFlag extends Enum<CacheFlag>
Flags used to enable cache services for JDA
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVITY
Enables cache forMember.getActivities()
CLIENT_STATUS
Enables cache forMember.getOnlineStatus(ClientType)
EMOTE
Enables cache forGuild.getEmoteCache()
VOICE_STATE
Enables cache forMember.getVoiceState()
This will always be cached for self member.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CacheFlag
valueOf(String name)
Returns the enum constant of this type with the specified name.static CacheFlag[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACTIVITY
public static final CacheFlag ACTIVITY
Enables cache forMember.getActivities()
-
VOICE_STATE
public static final CacheFlag VOICE_STATE
Enables cache forMember.getVoiceState()
This will always be cached for self member.
-
EMOTE
public static final CacheFlag EMOTE
Enables cache forGuild.getEmoteCache()
-
CLIENT_STATUS
public static final CacheFlag CLIENT_STATUS
Enables cache forMember.getOnlineStatus(ClientType)
-
-
Method Detail
-
values
public static CacheFlag[] 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 (CacheFlag c : CacheFlag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CacheFlag 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
-
-