public interface FixedSizeCollection<ResourceT>
Callers can iterate over the FixedSizeCollection object to get all elements in the collection. The number of elements is guaranteed to be equal to the value of the collectionSize parameter passed to expandPage(), unless the API has no more elements to return. The FixedSizeCollection object also provides methods to retrieve additional FixedSizeCollections using the page token.
Modifier and Type | Method and Description |
---|---|
int |
getCollectionSize()
Returns the number of elements in the collection.
|
FixedSizeCollection<ResourceT> |
getNextCollection()
Retrieves the next FixedSizeCollection using one or more API calls.
|
java.lang.String |
getNextPageToken()
Returns a page token that can be passed into the API list method to retrieve additional
elements.
|
java.lang.Iterable<ResourceT> |
getValues()
Returns an iterable over the elements in this FixedSizeCollection.
|
boolean |
hasNextCollection()
Returns true if there are more elements that can be retrieved from the API.
|
int getCollectionSize()
boolean hasNextCollection()
java.lang.String getNextPageToken()
FixedSizeCollection<ResourceT> getNextCollection()
java.lang.Iterable<ResourceT> getValues()