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

How to use
com.haoxuer.discover.data.page.Page
constructor

Best Java code snippets using com.haoxuer.discover.data.page.Page.<init> (Showing top 2 results out of 315)

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

@Override
public Page<T> page(Pageable pageable) {
 Page<T> result = null;
 List<Filter> filters = pageable.getFilters();
 List<Order> orders = pageable.getOrders();
 Finder finder = makeFinder(filters, orders);
 Pagination<T> page = find(finder, pageable.getPageNumber(), pageable.getPageSize());
 result = new Page<T>(page.getList(), page.getTotalCount(), pageable);
 return result;
}
origin: com.haoxuer.discover/discover-common-hibernate

criteriaQuery.setFirstResult((pageable.getPageNumber() - 1) * pageable.getPageSize());
criteriaQuery.setMaxResults(pageable.getPageSize());
return new Page<T>(criteriaQuery.list(), total, pageable);
com.haoxuer.discover.data.pagePage<init>

Javadoc

初始化一个新创建的Page对象

Popular methods of Page

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

Popular in Java

  • Making http post requests using okhttp
  • setScale (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • findViewById (Activity)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • JComboBox (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Best IntelliJ plugins
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