Class DefaultKeysetPage

    • Constructor Detail

      • DefaultKeysetPage

        public DefaultKeysetPage​(int firstResult,
                                 int maxResults,
                                 Serializable[] lowest,
                                 Serializable[] highest,
                                 Serializable[][] keysets)
        Creates a new KeysetPage.
        Parameters:
        firstResult - The first result
        maxResults - The max results
        lowest - The lowest keyset
        highest - The highest keyset
        keysets - All extracted keysets
      • DefaultKeysetPage

        public DefaultKeysetPage​(int firstResult,
                                 int maxResults,
                                 Keyset lowest,
                                 Keyset highest)
        Creates a new KeysetPage.
        Parameters:
        firstResult - The first result
        maxResults - The max results
        lowest - The lowest keyset
        highest - The highest keyset
      • DefaultKeysetPage

        public DefaultKeysetPage​(int firstResult,
                                 int maxResults,
                                 Keyset lowest,
                                 Keyset highest,
                                 List<Keyset> keysets)
        Creates a new KeysetPage.
        Parameters:
        firstResult - The first result
        maxResults - The max results
        lowest - The lowest keyset
        highest - The highest keyset
        keysets - All extracted keysets
    • Method Detail

      • getFirstResult

        public int getFirstResult()
        Description copied from interface: KeysetPage
        Returns the position of the first result, numbered from 0. This is the position of the first element of this key set.
        Specified by:
        getFirstResult in interface KeysetPage
        Returns:
        The position of the first result
      • getMaxResults

        public int getMaxResults()
        Description copied from interface: KeysetPage
        Returns the maximum number of results. This is the maximum number of results of this key set.
        Specified by:
        getMaxResults in interface KeysetPage
        Returns:
        The maximum number of results
      • getLowest

        public Keyset getLowest()
        Description copied from interface: KeysetPage
        Returns the key set for the lowest entry of the corresponding PagedList.
        Specified by:
        getLowest in interface KeysetPage
        Returns:
        The key set for the lowest entry
      • getHighest

        public Keyset getHighest()
        Description copied from interface: KeysetPage
        Returns the key set for the highest entry of the corresponding PagedList.
        Specified by:
        getHighest in interface KeysetPage
        Returns:
        The key set for the highest entry