Paginator Iterator-like object over an entire result set of a truncated/paginated API operation (for instance, listConnectedDevices).
Entity to paginate over
ListOptions class for paginator to use
Gets an array of all the elements of the collection. Note: This requires browsing the whole collection and therefore can be expensive. Moreover, all elements are stored in memory and hence, be careful when dealing with big collections.
Executes a function on all the elements of the collection.
method to execute on the elements Note: This requires browsing the whole collection and therefore can be expensive.
Returns the first item from the query, or null if there are no results.
Checks whether there is a next element in the collection.
Gets page size.
Gets collection total count (Approximate number of results according to the API).