Class DefaultKeysetPage

java.lang.Object
com.blazebit.persistence.DefaultKeysetPage
All Implemented Interfaces:
KeysetPage, Serializable

public class DefaultKeysetPage extends Object implements KeysetPage
A simple default implementation for the KeysetPage interface.
Since:
1.4.1
Author:
Christian Beikov
See Also:
  • Constructor Details

    • 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 Details

    • 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
    • getKeysets

      public List<Keyset> getKeysets()
      Description copied from interface: KeysetPage
      Returns the key set list of the corresponding PagedList.
      Specified by:
      getKeysets in interface KeysetPage
      Returns:
      The key set list