nl: sorts source and adds the first n entries that match filter to dest . if source contains less than n entries , all of them are added to dest . for details , see collectionhelpers #copynsorted collection , collection , comparator , int , except that source is filtered using filter before selecting entries to copy . concode_field_sep PlaceHolder placeHolder concode_field_sep void filter concode_elem_sep void filterMap concode_elem_sep void copyNSorted concode_elem_sep double getQuantile concode_elem_sep void splitMap concode_elem_sep List<T> getRandomPartFrom concode_elem_sep E getRandomEntry concode_elem_sep E getRandomEntry concode_elem_sep void copyUntilFull concode_elem_sep List<Tt> transformList
code: void function ( final Collection < T > arg0 , final Collection < T > arg1 , final Predicate < T > arg2 , final Comparator < T > arg3 , final int arg4 ) { final List < T > loc0 = new ArrayList < T > ( arg0 . size ( ) ) ; arg2 ( arg0 , loc0 , arg2 ) ; Collections . sort ( loc0 , arg3 ) ; final Iterator < T > loc1 = loc0 . iterator ( ) ; final int loc2 = arg1 . size ( ) + arg4 ; while ( loc1 . hasNext ( ) && arg1 . size ( ) < loc2 ) { arg1 . add ( loc1 . next ( ) ) ; } }