Enum Class ForumChannel.SortOrder
- All Implemented Interfaces:
Serializable
,Comparable<ForumChannel.SortOrder>
,Constable
- Enclosing class:
- ForumChannel
Sort orders are proposed by Discord to choose the order or threads in a Forum channel
Please see Discord documentation for further details
Please see Discord documentation for further details
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionInternal value only, for unknown values -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
Gets Discord represented valuestatic ForumChannel.SortOrder
valueOf
(int value) Translates an integer value to aForumChannel.SortOrder
static ForumChannel.SortOrder
Returns the enum constant of this class with the specified name.static ForumChannel.SortOrder[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Internal value only, for unknown values -
LATEST_ACTIVITY
-
CREATION_DATE
-
-
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
-
getValue
public int getValue()Gets Discord represented value- Returns:
- Discord integer represented value
-
valueOf
Translates an integer value to aForumChannel.SortOrder
- Parameters:
value
- The integer value- Returns:
- The SortOrder if known, or the fallback UNKNOWN value
-