Class ResultsPage<T>

java.lang.Object
com.codebarrel.api.ResultsPage<T>
Type Parameters:
T - the type of items this returns

public final class ResultsPage<T> extends Object
Represents a pageable result of items from the underlying data store.
  • Constructor Details

    • ResultsPage

      public ResultsPage(List<T> results)
    • ResultsPage

      public ResultsPage(List<T> results, Long limit, Long offset, long total)
  • Method Details

    • getResults

      public List<T> getResults()
    • getTotal

      public long getTotal()
    • getLimit

      public long getLimit()
    • getOffset

      public long getOffset()
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object