public static PageRequestDto createPageRequestDto ( final PageRequest pageRequest ) { final PageRequestDto pageRequestDto ; if ( pageRequest == null ) { pageRequestDto = null ; } else if ( pageRequest instanceof PageRequestDto ) { pageRequestDto = ( PageRequestDto ) pageRequest ; } else { pageRequestDto = new PageRequestDto ( pageRequest ) ; } return pageRequestDto ; }
Transforms a page request into a page request DTO .