Class PageAndCount

java.lang.Object
dev.dsf.fhir.search.PageAndCount

public class PageAndCount extends Object
  • Method Details

    • single

      public static PageAndCount single()
    • exists

      public static PageAndCount exists()
    • from

      public static PageAndCount from(Map<String,List<String>> queryParameters, int defaultPageCount)
    • from

      public static PageAndCount from(int page, int count)
      Parameters:
      page -
      count -
      Returns:
      Throws:
      ArithmeticException - if page * count > Integer.MAX_VALUE
      See Also:
    • getSql

      public String getSql()
    • isCountOnly

      public boolean isCountOnly(int total)
    • getPage

      public int getPage()
    • getCount

      public int getCount()
    • isLastPage

      public boolean isLastPage(int total)
    • getLastPage

      public int getLastPage(int total)