package net.lipecki.sqcompanion.sonarqube.sqapi;

import lombok.Data;

/**
 * @author gregorry
 */
@Data
public abstract class SQPaginatedResponse {

	private SQPaging paging;

    public boolean hasMorePages() {
        return paging.getPageIndex() < paging.getTotal();
    }

    public int getNextPage() {
        return paging.getPageIndex() + 1;
    }

}

@@ -47,29 +47,8 @@
 i;%0A%0A
-import lombok.Data;%0A%0A
 /**%0A
@@ -75,14 +75,8 @@
  */%0A
-@Data%0A
 publ
@@ -116,16 +116,16 @@
 onse %7B%0A%0A
-
 %09private
@@ -143,16 +143,162 @@
 aging;%0A%0A
+    public SQPaging getPaging() %7B%0A        return paging;%0A    %7D%0A%0A    public void setPaging(SQPaging paging) %7B%0A        this.paging = paging;%0A    %7D%0A%0A
     publ

remove equals inheritance from abstract paginated response