package com.auth0.client.mgmt.filter;

/**
 * Class used to filter the results received when calling the Grants endpoint. Related to the {@link com.auth0.client.mgmt.RolesEntity} entity.
 */
public class RolesFilter extends BaseFilter {

    /**
     * Filter by name
     *
     * @param name only retrieve items with this name.
     * @return this filter instance
     */
    public RolesFilter withName(String name) {
        parameters.put("name_filter", name);
        return this;
    }

    /**
     * Filter by page
     *
     * @param pageNumber    the page number to retrieve.
     * @param amountPerPage the amount of items per page to retrieve.
     * @return this filter instance
     */
    public RolesFilter withPage(int pageNumber, int amountPerPage) {
        parameters.put("page", pageNumber);
        parameters.put("per_page", amountPerPage);
        return this;
    }

    /**
     * Include the query summary
     *
     * @param includeTotals whether to include or not the query summary.
     * @return this filter instance
     */
    public RolesFilter withTotals(boolean includeTotals) {
        parameters.put("include_totals", includeTotals);
        return this;
    }

}

@@ -221,11 +221,11 @@
 nds 
-Bas
+Pag
 eFil
@@ -687,32 +687,46 @@
 nstance%0A     */%0A
+    @Override%0A
     public Roles
@@ -790,77 +790,33 @@
     
-parameters.put(%22page%22, pageNumber);%0A        parameters.put(%22per_page%22
+super.withPage(pageNumber
 , am
@@ -1014,32 +1014,46 @@
 nstance%0A     */%0A
+    @Override%0A
     public Roles
@@ -1107,41 +1107,25 @@
     
-parameters.put(%22include_t
+super.withT
 otals
-%22, 
+(
 incl

Implement additional PR feedback on the RolesFilter