Interface KeyValuePicker<T>

  • Type Parameters:
    T - the type of the paginated object.

    public interface KeyValuePicker<T>
    An element of the Paginator DSL allowing to specify the value used as boundary in the case of a key-based pagination.
    • Method Detail

      • before

        <C extends Comparable<? super C>> LimitPicker<Slice<T>,​T> before​(C value)
        Specify the value used as upper-boundary of the previously specified attribute. Objects having an attribute value that is greater than or equal to specified value will be skipped.
        Type Parameters:
        C - the type of the value.
        Parameters:
        value - the value used as upper-boundary.
        Returns:
        the next operation of the paginator DSL, allowing to specify a limit to the number of objects returned.
      • after

        <C extends Comparable<? super C>> LimitPicker<Slice<T>,​T> after​(C value)
        Specify the value used as lower-boundary of the previously specified attribute. Objects having an attribute value that is less than or equal to specified value will be skipped.
        Type Parameters:
        C - the type of the value.
        Parameters:
        value - the value used as lower-boundary.
        Returns:
        the next operation of the paginator DSL, allowing to specify a limit to the number of objects returned.