Enum Class ChannelFlag
- All Implemented Interfaces:
Serializable, Comparable<ChannelFlag>, Constable
Flags for specific channel settings.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis is aMediaChannelwhich hides the copy embed option.This is a forum postThreadChannelwhich is pinned in theForumChannel.This is aForumChannelwhich 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.intgetRaw()The raw bitset value of this flag.static intgetRaw(Collection<ChannelFlag> flags) The raw bitset value for the provided flags.static ChannelFlagReturns the enum constant of this class with the specified name.static ChannelFlag[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
PINNED
This is a forum postThreadChannelwhich is pinned in theForumChannel. -
REQUIRE_TAG
This is aForumChannelwhich requires all new post threads to have at least one applied tag. -
HIDE_MEDIA_DOWNLOAD_OPTIONS
This is aMediaChannelwhich hides the copy embed option.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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
-