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, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
parallelStream, stream
public 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 © 2021. All rights reserved.