com.stripe.model.PagingIterable Maven / Gradle / Ivy
package com.stripe.model;
import java.util.Iterator;
/**
* Provides an {@code Iterable}
target that automatically
* iterates across all API pages and which is suitable for use with a
* {@code foreach}
loop.
*/
public class PagingIterable implements Iterable {
private StripeCollectionInterface page;
PagingIterable(final StripeCollectionInterface page) {
this.page = page;
}
public Iterator iterator() {
return new PagingIterator(page);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy