Send feedback
Class AbstractFixedSizeCollection<RequestT,ResponseT,ResourceT,PageT,CollectionT> (2.19.6)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.19.6 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-08-28 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{
"lastModified": "Last updated 2024-08-28 UTC.",
"confidential": False
}