Class PageableMapper

java.lang.Object
io.beanmapper.spring.PageableMapper

public class PageableMapper extends Object
Mapping utilities for pages.
Since:
Nov 13, 2015
Author:
Jeroen van Schagen
  • Method Summary

    Modifier and Type
    Method
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 page
      targetClass - the target type
      beanMapper - the bean mapper used to perform mappings
      Returns:
      the same page, but with result type