Class PaginationModel

java.lang.Object
com.smeup.kokos.sdk.entity.model.query.PaginationModel

public class PaginationModel extends Object
Model class for pagination parameters. It contains the limit and offset values used for paginating results. The limit represents the maximum number of records to retrieve, while the offset indicates the starting point for retrieving records.
  • Field Details

  • Constructor Details

    • PaginationModel

      public PaginationModel(int limit, int offset)
  • Method Details

    • getLimit

      public int getLimit()
    • getOffset

      public int getOffset()
    • setOffset

      public void setOffset(int offset)
    • updateOffset

      public void updateOffset()
    • fromFun

      public static PaginationModel fromFun(com.smeup.kokos.sdk.fun.Fun fun)
      Parses pagination parameters from a FUN input string and creates a PaginationModel instance.
      Parameters:
      fun - the FUN object containing the input string with pagination parameters in the format "LIMIT(value);OFFSET(value)"
      Returns:
      a PaginationModel instance with the parsed limit and offset values, or default values if not specified