Class HalDataPageImpl

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected HalDataPageImpl​()
      Default constructor for usage by sub-classes.
        HalDataPageImpl​(int aPageNumber, int aPageSize, int aPageCount)
      Constructs the HalDataPage instances with the given pagination metrics.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getPageCount​()
      Returns the total number of the pages which are available for retrieval.
      int getPageNumber​()
      Returns the number of the page which this HalDataPage instances represents.
      int getPageSize​()
      Returns the maximum size of the page being requested for the HalDataPage result set.
      • Methods inherited from class java.util.AbstractCollection

        containsAll, toString
      • Methods inherited from class java.util.AbstractList

        equals, hashCode
      • Methods inherited from class java.util.ArrayList

        add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.List

        add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, of, of, of, of, of, of, of, of, of, of, of, of, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • HalDataPageImpl

        protected HalDataPageImpl​()
        Default constructor for usage by sub-classes.
      • HalDataPageImpl

        public HalDataPageImpl​(int aPageNumber,
                               int aPageSize,
                               int aPageCount)
        Constructs the HalDataPage instances with the given pagination metrics.
        Parameters:
        aPageNumber - The page's number as of pagination.
        aPageSize - The page's size as of pagination.
        aPageCount - The total page count of the overall result set.
    • Method Detail

      • getPageNumber

        public int getPageNumber​()
        Returns the number of the page which this HalDataPage instances represents.
        Specified by:
        getPageNumber in interface HalDataPage
        Returns:
        The HalDataPage result set's page number as of pagination.
      • getPageSize

        public int getPageSize​()
        Returns the maximum size of the page being requested for the HalDataPage result set. Returns -1 in case no page size has been specified.
        Specified by:
        getPageSize in interface HalDataPage
        Returns:
        The HalDataPage result set's page size as of pagination.
      • getPageCount

        public int getPageCount​()
        Returns the total number of the pages which are available for retrieval.
        Specified by:
        getPageCount in interface HalDataPage
        Returns:
        The total number of the pages repesenting the overall result set..