public final class

ListVersionsPage

extends Object
implements Page<ResourceT>
java.lang.Object
   ↳ com.google.firebase.remoteconfig.ListVersionsPage

Class Overview

Represents a page of Version instances. Provides methods for iterating over the versions in the current page, and calling up subsequent pages of versions. Instances of this class are thread-safe and immutable.

Summary

Public Methods
ListVersionsPage getNextPage()
Returns the next page of versions.
String getNextPageToken()
Returns the string token that identifies the next page.
Iterable<Version> getValues()
Returns an Iterable over the versions in this page.
boolean hasNextPage()
Checks if there is another page of versions available to retrieve.
Iterable<Version> iterateAll()
Returns an Iterable that facilitates transparently iterating over all the versions in the current Firebase project, starting from this page.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.api.gax.paging.Page

Public Methods

public ListVersionsPage getNextPage ()

Returns the next page of versions.

Returns

public String getNextPageToken ()

Returns the string token that identifies the next page. Never returns null. Returns an empty string if there are no more pages available to be retrieved.

Returns
  • A non-null string token (possibly empty, representing no more pages)

public Iterable<Version> getValues ()

Returns an Iterable over the versions in this page.

Returns
  • a Iterable<Version> instance.

public boolean hasNextPage ()

Checks if there is another page of versions available to retrieve.

Returns
  • true if another page is available, or false otherwise.

public Iterable<Version> iterateAll ()

Returns an Iterable that facilitates transparently iterating over all the versions in the current Firebase project, starting from this page. The Iterator instances produced by the returned Iterable never buffers more than one page of versions at a time. It is safe to abandon the iterators (i.e. break the loops) at any time.

Returns
  • a new Iterable<Version> instance.