Class ToolchainsPager
- java.lang.Object
-
- com.ibm.cloud.continuous_delivery.cd_toolchain.v2.model.ToolchainsPager
-
public class ToolchainsPager extends java.lang.ObjectToolchainsPager can be used to simplify the use of the "listToolchains" method.
-
-
Constructor Summary
Constructors Constructor Description ToolchainsPager(CdToolchain client, ListToolchainsOptions options)Constructs a new ToolchainsPager 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<ToolchainModel>getAll()Returns all results by invoking getNext() repeatedly until all pages of results have been retrieved.java.util.List<ToolchainModel>getNext()Returns the next page of results.booleanhasNext()Returns true if there are more results to be retrieved.
-
-
-
Constructor Detail
-
ToolchainsPager
public ToolchainsPager(CdToolchain client, ListToolchainsOptions options)
Constructs a new ToolchainsPager instance with the specified client and options model instance.- Parameters:
client- the CdToolchain instance to be used to invoke the "listToolchains" methodoptions- the ListToolchainsOptions instance to be used to invoke the "listToolchains" method
-
-
Method Detail
-
hasNext
public boolean hasNext()
Returns true if there are more results to be retrieved.- Returns:
- boolean
-
getNext
public java.util.List<ToolchainModel> getNext()
Returns the next page of results.- Returns:
- a List<ToolchainModel> that contains the next page of results
-
getAll
public java.util.List<ToolchainModel> getAll()
Returns all results by invoking getNext() repeatedly until all pages of results have been retrieved.- Returns:
- a List<ToolchainModel> containing all results returned by the "listToolchains" method
-
-