Class ResultSetPaginatedData

  • All Implemented Interfaces:
    Serializable

    public class ResultSetPaginatedData
    extends Object
    implements Serializable
    The Class ResultSetPaginatedData.
    Author:
    Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it Aug 6, 2021
    See Also:
    Serialized Form
    • Constructor Detail

      • ResultSetPaginatedData

        public ResultSetPaginatedData()
        Instantiates a new searched folder.
      • ResultSetPaginatedData

        public ResultSetPaginatedData​(int offset,
                                      int limit,
                                      boolean isServerSearchFinished)
        Instantiates a new result set paginated data.
        Parameters:
        offset - the offset
        limit - the limit
        isServerSearchFinished - the is server search finished
    • Method Detail

      • getData

        public List<? extends DocumentDV> getData()
        Gets the data.
        Returns:
        the data
      • getClientStartIndex

        public int getClientStartIndex()
        Gets the client start index.
        Returns:
        the client start index
      • getLimit

        public int getLimit()
        Gets the limit.
        Returns:
        the limit
      • isServerSearchFinished

        public boolean isServerSearchFinished()
        Checks if is server search finished.
        Returns:
        true, if is server search finished
      • setData

        public void setData​(List<ResultDocumentDV> data)
        Sets the data.
        Parameters:
        data - the new data
      • setClientStartIndex

        public void setClientStartIndex​(int clientStartIndex)
        Sets the client start index.
        Parameters:
        clientStartIndex - the new client start index
      • setLimit

        public void setLimit​(int limit)
        Sets the limit.
        Parameters:
        limit - the new limit
      • setServerSearchFinished

        public void setServerSearchFinished​(boolean isServerSearchFinished)
        Sets the server search finished.
        Parameters:
        isServerSearchFinished - the new server search finished
      • getTotalItems

        public long getTotalItems()
        Gets the total items.
        Returns:
        the total items
      • setTotalItems

        public void setTotalItems​(long totalItems)
        Sets the total items.
        Parameters:
        totalItems - the new total items
      • getSerialversionuid

        public static long getSerialversionuid()
        Gets the serialversionuid.
        Returns:
        the serialversionuid
      • getOffset

        public int getOffset()
        Gets the offset.
        Returns:
        the offset
      • setOffset

        public void setOffset​(int offset)
        Sets the offset.
        Parameters:
        offset - the new offset