Class PageResult<E>

  • Type Parameters:
    E - any object type

    public class PageResult<E>
    extends java.lang.Object
    This class contains the result of a paged query (i.e. the sliced result list and total size of the query).
    Since:
    jcms-6.0.0
    Author:
    Olivier Dedieu
    • Constructor Detail

      • PageResult

        public PageResult()
        Builds a new empty PageResults
      • PageResult

        public PageResult​(int totalSize,
                          boolean isTotalAccurate,
                          PageResult.Status status)
      • PageResult

        public PageResult​(int totalSize,
                          boolean isTotalAccurate,
                          boolean hasMoreElements,
                          PageResult.Status status)
      • PageResult

        public PageResult​(int totalSize,
                          boolean isTotalAccurate,
                          java.util.List<E> resultList)
      • PageResult

        public PageResult​(int totalSize,
                          boolean isTotalAccurate,
                          java.util.List<E> resultList,
                          PageResult.Status status)
      • PageResult

        public PageResult​(int totalSize,
                          boolean isTotalAccurate,
                          java.util.List<E> resultList,
                          boolean hasMoreElements,
                          PageResult.Status status)
      • PageResult

        public PageResult​(int totalSize,
                          boolean isTotalAccurate,
                          java.util.LinkedHashMap<E,​java.lang.Float> resultMap)
      • PageResult

        public PageResult​(int totalSize,
                          boolean isTotalAccurate,
                          java.util.LinkedHashMap<E,​java.lang.Float> resultMap,
                          PageResult.Status status)
      • PageResult

        public PageResult​(int totalSize,
                          boolean isTotalAccurate,
                          java.util.LinkedHashMap<E,​java.lang.Float> resultMap,
                          boolean hasMoreElements,
                          PageResult.Status status)
    • Method Detail

      • getTotalSize

        public int getTotalSize()
      • setTotalSize

        public void setTotalSize​(int totalSize)
      • getResultList

        public java.util.List<E> getResultList()
      • setResultList

        public void setResultList​(java.util.List<E> resultList)
      • getScore

        public float getScore​(E obj)
      • isTotalAccurate

        public boolean isTotalAccurate()
      • setTotalAccurate

        public void setTotalAccurate​(boolean isTotalAccurate)
      • hasMoreElements

        public boolean hasMoreElements()
      • setHasMoreElements

        public void setHasMoreElements​(boolean hasMoreElements)