congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Page.getPageNumber
Code IndexAdd Tabnine to your IDE (free)

How to use
getPageNumber
method
in
com.haoxuer.discover.data.page.Page

Best Java code snippets using com.haoxuer.discover.data.page.Page.getPageNumber (Showing top 5 results out of 315)

origin: com.haoxuer.discover/discover-common-hibernate

/**
 * 第一条数据位置
 *
 * @return
 */
public int getEndNo() {
 int result = 1;
 result = getPageNumber() + splitSize;
 if (getPageNumber() <= splitSize) {
  result = result + splitSize - getPageNumber();
  result++;
 } else {
 }
 if (result > getTotalPages()) {
  result = getTotalPages();
 }
 return result;
}
origin: com.haoxuer.discover/discover-common-hibernate

/**
 * 第一条数据位置
 *
 * @return
 */
public int getFirstNo() {
 int result = 1;
 result = getPageNumber() - splitSize;
 int t = getEndNo() - result;
 int num = splitSize * 2;
 if (t < num) {
  result = result - (num - t);
 }
 if (result <= 0) {
  result = 1;
 }
 return result;
}
origin: com.haoxuer.discover/discover-common-hibernate

public static <R, S> void cover(AbstractPageVo<R> result, Page<S> pager) {
 result.setPage(pager.getPageNumber());
 result.setSize(pager.getPageSize());
 result.setTotal((int) pager.getTotal());
 result.setTotalPage(pager.getTotalPages());
}
origin: com.haoxuer.discover/discover-common-user-hibernate

public static <R, S> void cover(ResponsePage<R> result, Page<S> pager) {
 result.setNo(pager.getPageNumber());
 result.setSize(pager.getPageSize());
 result.setTotal((int) pager.getTotal());
 result.setTotalPage(pager.getTotalPages());
}
 
origin: com.haoxuer.discover/discover-common-config

public static <R, S> void cover(ResponsePage<R> result, Page<S> pager) {
 result.setNo(pager.getPageNumber());
 result.setSize(pager.getPageSize());
 result.setTotal((int) pager.getTotal());
 result.setTotalPage(pager.getTotalPages());
}
 
com.haoxuer.discover.data.pagePagegetPageNumber

Javadoc

获取页码

Popular methods of Page

  • getContent
    获取内容
  • getTotalPages
    获取总页数
  • getPageSize
    获取每页记录数
  • getTotal
    获取总记录数
  • <init>
  • getEndNo
    第一条数据位置

Popular in Java

  • Making http post requests using okhttp
  • setContentView (Activity)
  • setRequestProperty (URLConnection)
  • startActivity (Activity)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now