Integer [ ] function ( User arg0 , User arg1 ) { List < Integer > loc0 = new ArrayList < Integer > ( ) ; for ( Rating loc1 : arg0 . getAllRatings ( ) ) { if ( arg1 . getItemRating ( loc1 . getItemId ( ) ) != null ) { loc0 . add ( loc1 . getItemId ( ) ) ; } } return loc0 . toArray ( new Integer [ loc0 . size ( ) ] ) ; }
utility method to extract item ids that are shared between user a and user b. concode_field_sep Map<Integer,Rating> ratingsByItemId concode_elem_sep String name concode_elem_sep List<Content> userContent concode_elem_sep long serialVersionUID concode_elem_sep int id concode_field_sep Collection<Rating> getAllRatings concode_elem_sep void addUserContent concode_elem_sep void addRating concode_elem_sep String getName concode_elem_sep double[] getRatingsForItemList concode_elem_sep List<Content> getUserContent concode_elem_sep Content getUserContent concode_elem_sep void setUserContent concode_elem_sep double getAverageRating concode_elem_sep int getId concode_elem_sep void setRatings concode_elem_sep Rating getItemRating