public class FspResponse<T> extends Object
| Constructor and Description |
|---|
FspResponse(FspRequest request,
List<T> content,
long totalElementsCount)
Constructor for
FspResponse with paging information |
FspResponse(List<T> content)
Constructor for
FspResponse without paging information |
| Modifier and Type | Method and Description |
|---|---|
Long |
getElementsCount() |
Long |
getTotalPages() |
<U> FspResponse<U> |
map(java.util.function.Function<List<T>,List<U>> conversion)
This method allows mapping document objects to DTO objects
|
public FspResponse(List<T> content)
FspResponse without paging informationpublic FspResponse(FspRequest request, List<T> content, long totalElementsCount)
FspResponse with paging informationpublic <U> FspResponse<U> map(java.util.function.Function<List<T>,List<U>> conversion)
U - conversion - public Long getElementsCount()
public Long getTotalPages()
Copyright © 2022. All rights reserved.