Send feedback
Class AbstractFixedSizeCollection<RequestT,ResponseT,ResourceT,PageT,CollectionT> (2.20.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.20.1 keyboard_arrow_down
public abstract class AbstractFixedSizeCollection<RequestT , ResponseT , ResourceT , PageT , CollectionT > implements FixedSizeCollection<ResourceT>
Inheritance
java.lang.Object >
AbstractFixedSizeCollection<RequestT,ResponseT,ResourceT,PageT,CollectionT>
Implements
com.google.api.gax.paging.FixedSizeCollection<ResourceT>
Type Parameters
Name Description RequestT ResponseT ResourceT PageT CollectionT
Constructors
AbstractFixedSizeCollection(List<PageT> pages, int collectionSize)
protected AbstractFixedSizeCollection ( List<PageT> pages , int collectionSize )
Parameters
Name Description pages List <PageT >
collectionSize int
Methods
createCollection(List<PageT> pages, int collectionSize)
protected abstract CollectionT createCollection ( List<PageT> pages , int collectionSize )
Parameters
Name Description pages List <PageT >
collectionSize int
Returns
Type Description CollectionT
getCollectionSize()
public int getCollectionSize ()
Returns the number of elements in the collection. This will be equal to the collectionSize
parameter used at construction unless there are no elements remaining to be retrieved.
Returns
getNextCollection()
public CollectionT getNextCollection ()
Retrieves the next FixedSizeCollection using one or more API calls.
Returns
Type Description CollectionT
getNextPageToken()
public String getNextPageToken ()
Returns a page token that can be passed into the API list method to retrieve additional
elements.
Returns
getValues()
public Iterable<ResourceT> getValues ()
Returns an iterable over the elements in this FixedSizeCollection.
Returns
hasNextCollection()
public boolean hasNextCollection ()
Returns true if there are more elements that can be retrieved from the API.
Returns
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-26 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-26 UTC."],[],[]]