Class HateoasCursorPaginatedResponse<T>

java.lang.Object
com.helixframework.api.contract.HateoasResponse
com.helixframework.api.contract.HateoasCursorPaginatedResponse<T>
Type Parameters:
T - item type

public class HateoasCursorPaginatedResponse<T> extends HateoasResponse
API response that returns a collection with cursor pagination and HATEOS links.
  • Constructor Details

  • Method Details

    • getCount

      public int getCount()
      Gets the number of items in the collection.
      Returns:
      number of items in the collection
    • getCursor

      public String getCursor()
      Gets the next page cursor.
      Returns:
      next page cursor
    • getItems

      public Collection<T> getItems()
      Gets the items.
      Returns:
      items