Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for calculatePageInfo (0.07 sec)

  1. src/test/java/org/codelibs/fess/util/QueryResponseListTest.java

            qrList = new QueryResponseList(null, 0, 20, 0) {
                @Override
                public int size() {
                    return 0;
                }
            };
            qrList.calculatePageInfo();
            assertEquals(20, qrList.getPageSize());
            assertEquals(1, qrList.getCurrentPageNumber());
            assertEquals(0, qrList.getAllRecordCount());
            assertEquals(1, qrList.getAllPageCount());
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 14K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/util/QueryResponseList.java

            this.queryTime = queryTime;
            this.partialResults = partialResults;
            this.facetResponse = facetResponse;
            if (pageSize > 0) {
                calculatePageInfo();
            }
        }
    
        protected void calculatePageInfo() {
            int startWithOffset = start - offset;
            if (startWithOffset < 0) {
                startWithOffset = 0;
            }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top