com.gocardless.http.PaginatingIterable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gocardless-pro Show documentation
Show all versions of gocardless-pro Show documentation
Client library for accessing the GoCardless Pro API
package com.gocardless.http;
import java.util.Iterator;
class PaginatingIterable implements Iterable {
private final ListRequest, T> request;
private final HttpClient client;
PaginatingIterable(ListRequest, T> request, HttpClient client) {
this.request = request;
this.client = client;
}
@Override
public Iterator iterator() {
return new PaginatingIterator<>(request, client);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy