The Java SDK handles pagination transparently for you. For instance, if you have 100 Accounts total in the results, set the offset=0 (default), and the limit to 50 using the AccountList, the SDK will retrieve the first 50 Accounts.
When you iterate past the 50th Account, it will call out for the next batch of 50 and return the 51st Account. Further documentation on pagination is available here.
If you have any questions about pagination or working with our Java SDK in general, we’re here to help.