Class AccountGroupsPager


  • public class AccountGroupsPager
    extends java.lang.Object
    AccountGroupsPager can be used to simplify the use of the "listAccountGroups" method.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<AccountGroup> getAll()
      Returns all results by invoking getNext() repeatedly until all pages of results have been retrieved.
      java.util.List<AccountGroup> getNext()
      Returns the next page of results.
      boolean hasNext()
      Returns true if there are more results to be retrieved.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AccountGroupsPager

        public AccountGroupsPager​(EnterpriseManagement client,
                                  ListAccountGroupsOptions options)
        Constructs a new AccountGroupsPager instance with the specified client and options model instance.
        Parameters:
        client - the EnterpriseManagement instance to be used to invoke the "listAccountGroups" method
        options - the ListAccountGroupsOptions instance to be used to invoke the "listAccountGroups" method
    • Method Detail

      • hasNext

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

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

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