public class PagedResponse<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PagedResponse.Builder<BT> |
| Modifier and Type | Field and Description |
|---|---|
static Function<PagedResponse<?>,String> |
NEXT |
static Function<PagedResponse<?>,String> |
PREV |
| Constructor and Description |
|---|
PagedResponse(Class<T> clazz,
String self,
String next,
String previous,
int pages,
List<T> list) |
| Modifier and Type | Method and Description |
|---|---|
void |
debug() |
Class<T> |
getClazz() |
List<T> |
getList() |
Optional<String> |
getNext() |
Optional<String> |
getPrevious() |
String |
getSelf() |
URI |
getUri(Function<PagedResponse<?>,String> direction) |
boolean |
hasNext() |
boolean |
hasPrevious() |
public static final Function<PagedResponse<?>,String> NEXT
public static final Function<PagedResponse<?>,String> PREV
public boolean hasNext()
public boolean hasPrevious()
public String getSelf()
public void debug()
public URI getUri(Function<PagedResponse<?>,String> direction)
Copyright © 2017. All rights reserved.