Enum PaginationAction.PaginationOrder
java.lang.Object
java.lang.Enum<PaginationAction.PaginationOrder>
net.dv8tion.jda.api.requests.restaction.pagination.PaginationAction.PaginationOrder
- All Implemented Interfaces:
Serializable
,Comparable<PaginationAction.PaginationOrder>
- Enclosing interface:
PaginationAction<T,
M extends PaginationAction<T, M>>
Defines the pagination order for a pagination endpoint.
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetKey()
The API query parameter keyReturns the enum constant of this type with the specified name.static PaginationAction.PaginationOrder[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BACKWARD
Iterates backwards in time, listing the most recent entities first. -
FORWARD
Iterates forward in time, listing the oldest entities first.
-
-
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
The API query parameter key- Returns:
- The query key
-