Class SimplePagination

java.lang.Object
net.solarnetwork.domain.SimplePagination
All Implemented Interfaces:
Cloneable

public class SimplePagination extends Object implements Cloneable
Simple pagination characteristics.

This is designed to support search queries and filters.

Version:
1.1
Author:
matt
  • Constructor Details

    • SimplePagination

      public SimplePagination()
  • Method Details

    • matches

      public boolean matches(List<SortDescriptor> sorts, Integer offset, Integer max)
      Test if the arguments match the values in this instance.
      Parameters:
      sorts - the sorts
      offset - the offset
      max - the max
      Returns:
      true if all the arguments match the associated properties in this instance
    • clone

      public SimplePagination clone()
      Overrides:
      clone in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getSorts

      public List<SortDescriptor> getSorts()
      Get the sort orderings.
      Returns:
      the sorts
    • setSorts

      public void setSorts(List<SortDescriptor> sorts)
      Set the sort orderings.
      Parameters:
      sorts - the sorts to set
    • getOffset

      public Integer getOffset()
      Get the desired starting offset.
      Returns:
      the offset, or null
    • setOffset

      public void setOffset(Integer offset)
      Set the desired starting offset.
      Parameters:
      offset - the offset to set
    • getMax

      public Integer getMax()
      Get the maximum desired results.
      Returns:
      the max, or null for all results
    • setMax

      public void setMax(Integer max)
      Set the maximum results.
      Parameters:
      max - the max to set