public void setPageSize ( int ps ) { ArrayList < T > tmp = new ArrayList < T > ( ) ; for ( Collection < T > page : pages ) { for ( T item : page ) { tmp . add ( item ) ; } } setup ( tmp , ps , sorter ) ; }
Changes the page size of the list and reforms the list . May cause unexpected behavior in terms of what is considered the current page after resizing .