Class EnterprisesPager
- java.lang.Object
-
- com.ibm.cloud.platform_services.enterprise_management.v1.model.EnterprisesPager
-
public class EnterprisesPager extends java.lang.ObjectEnterprisesPager can be used to simplify the use of the "listEnterprises" method.
-
-
Constructor Summary
Constructors Constructor Description EnterprisesPager(EnterpriseManagement client, ListEnterprisesOptions options)Constructs a new EnterprisesPager instance with the specified client and options model instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Enterprise>getAll()Returns all results by invoking getNext() repeatedly until all pages of results have been retrieved.java.util.List<Enterprise>getNext()Returns the next page of results.booleanhasNext()Returns true if there are more results to be retrieved.
-
-
-
Constructor Detail
-
EnterprisesPager
public EnterprisesPager(EnterpriseManagement client, ListEnterprisesOptions options)
Constructs a new EnterprisesPager instance with the specified client and options model instance.- Parameters:
client- the EnterpriseManagement instance to be used to invoke the "listEnterprises" methodoptions- the ListEnterprisesOptions instance to be used to invoke the "listEnterprises" method
-
-
Method Detail
-
hasNext
public boolean hasNext()
Returns true if there are more results to be retrieved.- Returns:
- boolean
-
getNext
public java.util.List<Enterprise> getNext()
Returns the next page of results.- Returns:
- a List<Enterprise> that contains the next page of results
-
getAll
public java.util.List<Enterprise> getAll()
Returns all results by invoking getNext() repeatedly until all pages of results have been retrieved.- Returns:
- a List<Enterprise> containing all results returned by the "listEnterprises" method
-
-