Enum PaginationSignalSource
java.lang.Object
java.lang.Enum<PaginationSignalSource>
com.shri.restinpeace.annotation.pagination.PaginationSignalSource
- All Implemented Interfaces:
Serializable,Comparable<PaginationSignalSource>,java.lang.constant.Constable
Where one particular
@Paginated signal comes from - reused across
pointerSource, hasMoreSource, totalSource, and
totalPagesSource (one enum, four uses, not four renamed
near-duplicates) per docs/design/pagination-helper.md §6.1.
ITEM_FIELD is only meaningful for pointerSource - keyset
pagination derives the next pointer from the last fetched item itself
(§6.6), a concept that doesn't apply to a hasMore/total-count
signal - RIP.getClient(...) rejects it for any other attribute.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDerived from the last fetched item, forpointerSourceonly.No such signal - this attribute isn't used.Read from the (possibly nested) response body.Read from a response header. -
Method Summary
Modifier and TypeMethodDescriptionstatic PaginationSignalSourceReturns the enum constant of this type with the specified name.static PaginationSignalSource[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
RESPONSE_BODY
Read from the (possibly nested) response body. -
RESPONSE_HEADER
Read from a response header. -
ITEM_FIELD
Derived from the last fetched item, forpointerSourceonly. -
NONE
No such signal - this attribute isn't used.
-
-
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
-