Class Pagination

java.lang.Object
ch.tocco.nice2.persist.core.api.query.Pagination

public class Pagination extends Object
Object which represents the offset and limit of a db query.
  • Method Details

    • of

      public static Pagination of(int offset, int limit)
    • withLimit

      public static Pagination withLimit(int limit)
    • noLimit

      public static Pagination noLimit()
    • getOffset

      public int getOffset()
    • getLimit

      public int getLimit()
    • active

      public boolean active()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object