@@ -0,0 +1,958 @@
+package com.github.aureliano.verbum_domini.web;%0A%0Apublic class ServiceParams %7B%0A%0A%09private Integer start;%0A%09private Integer pages;%0A%09%0A%09public ServiceParams() %7B%0A%09%09super();%0A%09%7D%0A%09%0A%09public static ServiceParams createDefault() %7B%0A%09%09return new ServiceParams().withStart(1).withPages(1);%0A%09%7D%0A%0A%09public Integer getStart() %7B%0A%09%09return start;%0A%09%7D%0A%0A%09public ServiceParams withStart(Object start) %7B%0A%09%09if (start == null) %7B%0A%09%09%09this.start = 1;%0A%09%09%7D else if (start instanceof Long) %7B%0A%09%09%09this.start = ((Long) start).intValue();%0A%09%09%7D else %7B%0A%09%09%09this.start = (Integer) start;%0A%09%09%7D%0A%09%09%0A%09%09if (this.start %3C 1) %7B%0A%09%09%09this.start = 1;%0A%09%09%7D%0A%09%09%0A%09%09return this;%0A%09%7D%0A%0A%09public Integer getPages() %7B%0A%09%09return pages;%0A%09%7D%0A%0A%09public ServiceParams withPages(Object pages) %7B%0A%09%09if (pages == null) %7B%0A%09%09%09this.pages = 1;%0A%09%09%7D else if (pages instanceof Long) %7B%0A%09%09%09this.pages = ((Long) pages).intValue();%0A%09%09%7D else %7B%0A%09%09%09this.pages = (Integer) pages;%0A%09%09%7D%0A%09%09%0A%09%09if (this.pages %3C 1) %7B%0A%09%09%09this.pages = 1;%0A%09%09%7D%0A%09%09%0A%09%09return this;%0A%09%7D%0A%7D

Create service params class.