public class PagedList<T> extends ArrayList<HttpResponse<T>>
modCount| Constructor and Description |
|---|
PagedList() |
| Modifier and Type | Method and Description |
|---|---|
List<T> |
getBodies() |
PagedList<T> |
ifFailure(Consumer<HttpResponse<T>> consumer)
For each failed response if the response was NOT a 200-series response or a mapping exception happened.
|
PagedList<T> |
ifSuccess(Consumer<HttpResponse<T>> consumer)
For each successful response If the response was a 200-series response.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streampublic PagedList<T> ifSuccess(Consumer<HttpResponse<T>> consumer)
consumer - a function to consume a HttpResponsepublic PagedList<T> ifFailure(Consumer<HttpResponse<T>> consumer)
consumer - a function to consume a HttpResponseCopyright © 2020. All rights reserved.