build a page html content according to number of records , records per page , base url and display distance . example : get total and set it into buildpageinfo method : pageinfo pageinfo = buildpageinfo articledao.count , record_per_page , getcontextpath '' '' + '' / problem '' , null ; concode_field_sep PlaceHolder placeHolder concode_field_sep Boolean checkPermission concode_elem_sep Boolean checkPermission concode_elem_sep UserDto getCurrentUser concode_elem_sep List<Integer> getContestTeamMembers concode_elem_sep void setContestTeamMembers concode_elem_sep Byte getContestType concode_elem_sep void putFieldErrorsIntoBindingResult concode_elem_sep void setContestPermission concode_elem_sep Boolean isAdmin concode_elem_sep void setContestType concode_elem_sep void checkContestPermission
PageInfo function ( Long arg0 , Long arg1 , Long arg2 , Integer arg3 ) { return PageInfo . create ( arg0 , arg2 , arg3 == null ? 2 : arg3 , arg1 ) ; }