com.auth0.json.mgmt.grants.GrantsPageDeserializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of auth0 Show documentation
Show all versions of auth0 Show documentation
Java client library for the Auth0 platform.
package com.auth0.json.mgmt.grants;
import com.auth0.json.mgmt.PageDeserializer;
import java.util.List;
/**
* Parses a given paged response into their {@link GrantsPage} representation.
*
* This class is thread-safe.
*
* @see PageDeserializer
* @see com.auth0.client.mgmt.GrantsEntity
*/
@SuppressWarnings({"unused", "WeakerAccess"})
class GrantsPageDeserializer extends PageDeserializer {
GrantsPageDeserializer() {
super(Grant.class, "grants");
}
@Override
protected GrantsPage createPage(List items) {
return new GrantsPage(items);
}
@Override
protected GrantsPage createPage(Integer start, Integer length, Integer total, Integer limit, List items) {
return new GrantsPage(start, length, total, limit, items);
}
}