Enum ForumChannel.Layout
java.lang.Object
java.lang.Enum<ForumChannel.Layout>
net.dv8tion.jda.api.entities.channel.concrete.ForumChannel.Layout
- All Implemented Interfaces:
Serializable
,Comparable<ForumChannel.Layout>
- Enclosing interface:
- ForumChannel
The layout used to sort forum posts.
-
Enum Constant Summary
Enum ConstantDescriptionDisplayed as default (not set).Displayed as a collection of tiles.Displayed as a chronological list.Placeholder for future layout types. -
Method Summary
Modifier and TypeMethodDescriptionstatic ForumChannel.Layout
fromKey
(int key) TheForumChannel.Layout
for the provided key.int
getKey()
The underlying value as used by Discord.static ForumChannel.Layout
Returns the enum constant of this type with the specified name.static ForumChannel.Layout[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DEFAULT_VIEW
Displayed as default (not set). -
LIST_VIEW
Displayed as a chronological list. -
GALLERY_VIEW
Displayed as a collection of tiles. -
UNKNOWN
Placeholder for future layout types.
-
-
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
-
getKey
public int getKey()The underlying value as used by Discord.- Returns:
- The raw order key
-
fromKey
TheForumChannel.Layout
for the provided key.- Parameters:
key
- The key to get theForumChannel.Layout
for- Returns:
- The
ForumChannel.Layout
for the provided key, orUNKNOWN
if the key is not known
-