All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.plenigo.sdk.internal.models.PagingInfo Maven / Gradle / Ivy

There is a newer version: 1.7.2
Show newest version
package com.plenigo.sdk.internal.models;


/**
 * 

* This class represents the paging information required for retrieving lists used in the plenigo API. *

*

* IMPORTANT: This class is part of the internal API, please do not use it, because it can * be removed in future versions of the SDK or access to such elements could * be changed from 'public' to 'default' or less. *

*

* Thread safety: This class is not thread safe. *

*/ public class PagingInfo { private String lastId; private int pageSize; private int totalElements; /** * Required constructor. * * @param lastId The last id of the returned elements * @param pageSize The size of elements returned * @param totalElements The amount of total elements */ public PagingInfo(String lastId, int pageSize, int totalElements) { this.lastId = lastId; this.pageSize = pageSize; this.totalElements = totalElements; } /** * Retrieves the last id of the returned elements. * * @return the last id */ public String getLastId() { return lastId; } /** * Retrieves the page size of the returned elements. * * @return the page size */ public int getPageSize() { return pageSize; } /** * Retrieves the amount of total elements. * * @return the total elements */ public int getTotalElements() { return totalElements; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy