class PagingRequest implements ImmutableBean {

  public static PagingRequest ofPageDefaulted(int page, int pagingSize) {
    page = (page == 0 ? 1 : page);
    pagingSize = (pagingSize == 0 ? DEFAULT_PAGING_SIZE : pagingSize);
    return PagingRequest.ofPage(page, pagingSize);
  }

  @ImmutableConstructor private  PagingRequest(final int index, final int size);

}