com.stripe.model.SearchPagingIterable 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.
*
* Please note SearchPagingIterable is in beta and is subject to change or removal at any time.
*/
public class SearchPagingIterable implements Iterable {
private StripeSearchResultInterface page;
SearchPagingIterable(final StripeSearchResultInterface page) {
this.page = page;
}
@Override
public Iterator iterator() {
return new SearchPagingIterator<>(page);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy