Class DataProductDraftsPager


  • public class DataProductDraftsPager
    extends java.lang.Object
    DataProductDraftsPager can be used to simplify the use of the "listDataProductDrafts" method.
    • Constructor Detail

      • DataProductDraftsPager

        public DataProductDraftsPager​(Dpx client,
                                      ListDataProductDraftsOptions options)
        Constructs a new DataProductDraftsPager instance with the specified client and options model instance.
        Parameters:
        client - the Dpx instance to be used to invoke the "listDataProductDrafts" method
        options - the ListDataProductDraftsOptions instance to be used to invoke the "listDataProductDrafts" method
    • Method Detail

      • hasNext

        public boolean hasNext()
        Returns true if there are more results to be retrieved.
        Returns:
        boolean
      • getNext

        public java.util.List<DataProductVersionSummary> getNext()
        Returns the next page of results.
        Returns:
        a List<DataProductVersionSummary> that contains the next page of results
      • getAll

        public java.util.List<DataProductVersionSummary> getAll()
        Returns all results by invoking getNext() repeatedly until all pages of results have been retrieved.
        Returns:
        a List<DataProductVersionSummary> containing all results returned by the "listDataProductDrafts" method