Package com.collibra.dgc.core.api.dto

# Class PagedResponse.Builder<T>

Object
Builder<T>

Enclosing class:
  `PagedResponse<T>`

public static final class PagedResponse.Builder<T> extends Object

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `protected long`
  `limit`
  Deprecated.
  This field will become private in the next major release.
  `protected long`
  `offset`
  Deprecated.
  This field will become private in the next major release.
  `protected long`
  `total`
  Deprecated.
  This field will become private in the next major release.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `PagedResponse<T>`
  `build()`
  `PagedResponse.Builder<T>`
  `but()`
  Deprecated.
  This method will be removed in the future.
  `PagedResponse.Builder<T>`
  `limit(long limit)`
  `PagedResponse.Builder<T>`
  `offset(long offset)`
  `PagedResponse.Builder<T>`
  `results(List<T> results)`
  The list of results.
  `String`
  `toString()`
  `PagedResponse.Builder<T>`
  `total(long total)`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Field Details

  - ### total

    @Deprecated protected long total
    Deprecated.
    This field will become private in the next major release.

  - ### offset

    @Deprecated protected long offset
    Deprecated.
    This field will become private in the next major release.

  - ### limit

    @Deprecated protected long limit
    Deprecated.
    This field will become private in the next major release.

- ## Method Details

  - ### total

    public PagedResponse.Builder<T> total(long total)

  - ### offset

    public PagedResponse.Builder<T> offset(long offset)

  - ### limit

    public PagedResponse.Builder<T> limit(long limit)

  - ### but

    @Deprecated public PagedResponse.Builder<T> but()
    Deprecated.
    This method will be removed in the future. Please, use `PagedResponse.builder()`
    Clone method for this Builder.

  - ### results

    public PagedResponse.Builder<T> results(List<T> results)
    The list of results.
    Returns:
      `this`.

  - ### build

    public PagedResponse<T> build()

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`