public static < T > List < T > lastOf ( List < T > list , int count , Sort ... sorts ) { if ( list . size ( ) > 1 ) { Sorting . sort ( list , sorts ) ; return Lists . endSliceOf ( list , count * - 1 ) ; } else { return null ; } }
Grabs the last few items from the list .