Class PageImpl<T> (2.63.1)

publicclassPageImpl<T>implementsPage<T>,Serializable

Base implementation for Google Cloud paginated results.

Inheritance

Object >PageImpl<T>

Implements

Page<T>,Serializable

Type Parameter

NameDescription
T

Static Methods

<T>nextRequestOptions(T pageTokenOption, String cursor, Map<T,?> optionMap)

publicstaticMap<T,Object><T>nextRequestOptions(TpageTokenOption,Stringcursor,Map<T,?>optionMap)

Utility method to construct the options map for the next page request.

Parameters
NameDescription
pageTokenOptionT

the key for the next page cursor option in the options map

cursorString

the cursor for the next page

optionMapMap<T,?>

the previous options map

Returns
TypeDescription
Map<T,Object>

the options map for the next page request

Constructors

PageImpl(PageImpl.NextPageFetcher<T> pageFetcher, String cursor, Iterable<T> results)

publicPageImpl(PageImpl.NextPageFetcher<T>pageFetcher,Stringcursor,Iterable<T>results)

Creates aPageImpl object. In order for the object to be serializable the results parameter must be serializable.

Parameters
NameDescription
pageFetcherNextPageFetcher<T>
cursorString
resultsIterable<T>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getNextPage()

publicPage<T>getNextPage()
Returns
TypeDescription
Page<T>

getNextPageToken()

publicStringgetNextPageToken()
Returns
TypeDescription
String

getValues()

publicIterable<T>getValues()
Returns
TypeDescription
Iterable<T>

hasNextPage()

publicbooleanhasNextPage()
Returns
TypeDescription
boolean

hashCode()

publicinthashCode()
Returns
TypeDescription
int
Overrides

iterateAll()

publicIterable<T>iterateAll()
Returns
TypeDescription
Iterable<T>

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-01-31 UTC.