Enum PointerKind
- All Implemented Interfaces:
Serializable,Comparable<PointerKind>,java.lang.constant.Constable
Whether a
@Paginated method's extracted next-page pointer is a
complete URL to follow verbatim, or a bare value to re-inject into the
next request via a @PaginationCursor carrier. See
docs/design/pagination-helper.md ยง6.1.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe extracted pointer is a complete next-page URL, followed the same way an@Urlparameter's value would be - no@PaginationCursorparameter is used (there's nothing to inject into).The extracted pointer is a bare cursor/token/page-number value, resent via whichever parameter carries@PaginationCursor. -
Method Summary
Modifier and TypeMethodDescriptionstatic PointerKindReturns the enum constant of this type with the specified name.static PointerKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FULL_URL
The extracted pointer is a complete next-page URL, followed the same way an@Urlparameter's value would be - no@PaginationCursorparameter is used (there's nothing to inject into). -
VALUE
The extracted pointer is a bare cursor/token/page-number value, resent via whichever parameter carries@PaginationCursor.
-
-
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
-