public class PageableMapper extends Object
Constructor and Description |
---|
PageableMapper() |
Modifier and Type | Method and Description |
---|---|
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.
|
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)
source
- the source pagetargetClass
- the target typebeanMapper
- the bean mapper used to perform mappingsCopyright © 2015–2017 42 BV. All rights reserved.