All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.gocardless.http.PaginatingIterable Maven / Gradle / Ivy

There is a newer version: 6.0.0
Show newest version
package com.gocardless.http;

import java.util.Iterator;

class PaginatingIterable implements Iterable {
    private final ListRequest request;
    private final HttpClient client;

    PaginatingIterable(ListRequest 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