Package io.beanmapper.spring
Class PageableMapper
java.lang.Object
io.beanmapper.spring.PageableMapper
Mapping utilities for pages.
- Since:
- Nov 13, 2015
- Author:
- Jeroen van Schagen
-
Method Summary
-
Method Details
-
map
public static <S,T> org.springframework.data.domain.Page<T> map(org.springframework.data.domain.Page<S> source, Class<T> targetClass, io.beanmapper.BeanMapper beanMapper) Converts a page into the desired target type.- Parameters:
source
- the source pagetargetClass
- the target typebeanMapper
- the bean mapper used to perform mappings- Returns:
- the same page, but with result type
-