Enum ChannelFlag
- All Implemented Interfaces:
Serializable
,Comparable<ChannelFlag>
Flags for specific channel settings.
-
Enum Constant Summary
Enum ConstantDescriptionThis is aMediaChannel
which hides the copy embed option.This is a forum postThreadChannel
which is pinned in theForumChannel
.This is aForumChannel
which requires all new post threads to have at least one applied tag. -
Method Summary
Modifier and TypeMethodDescriptionstatic EnumSet<ChannelFlag>
fromRaw
(int bitset) Parses the provided bitset to the corresponding enum constants.int
getRaw()
The raw bitset value of this flag.static int
getRaw
(Collection<ChannelFlag> flags) The raw bitset value for the provided flags.static ChannelFlag
Returns the enum constant of this type with the specified name.static ChannelFlag[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PINNED
This is a forum postThreadChannel
which is pinned in theForumChannel
. -
REQUIRE_TAG
This is aForumChannel
which requires all new post threads to have at least one applied tag. -
HIDE_MEDIA_DOWNLOAD_OPTIONS
This is aMediaChannel
which hides the copy embed option.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getRaw
public int getRaw()The raw bitset value of this flag.- Returns:
- The raw value
-
fromRaw
Parses the provided bitset to the corresponding enum constants.- Parameters:
bitset
- The bitset of channel flags- Returns:
- The enum constants of the provided bitset
-
getRaw
The raw bitset value for the provided flags.- Returns:
- The raw value
-