@ SuppressWarnings ( { "ConstantConditions" } ) private Map < String , String > buildEpisodeMap ( String [ ] showIds , String [ ] episodeIds , String searchTerm , SearchType searchType , TagMode tagMode , Episode . EpisodeStatus status , SortBy sortBy , SortDir sortDir , Boolean includeViews , Integer page , Integer perPage , Integer embedWidth , Integer embedHeight ) { Map < String , String > map = new HashMap < String , String > ( ) ; map . put ( "expires" , expires ( ) ) ; if ( showIds != null ) map . put ( "show_id" , join ( showIds ) ) ; if ( episodeIds != null ) map . put ( "id" , join ( episodeIds ) ) ; if ( searchTerm != null ) map . put ( "search_type" , searchType . name ( ) ) ; if ( tagMode != null ) map . put ( "tag_mode" , tagMode . name ( ) ) ; if ( status != null ) map . put ( "status" , status . name ( ) ) ; if ( sortBy != null ) map . put ( "sort_by" , sortBy . name ( ) ) ; if ( sortDir != null ) map . put ( "sort_dir" , sortDir . name ( ) ) ; if ( includeViews != null ) map . put ( "include_views" , includeViews . toString ( ) ) ; if ( page != null ) map . put ( "page" , page . toString ( ) ) ; if ( perPage != null ) map . put ( "per_page" , perPage . toString ( ) ) ; if ( embedWidth != null ) map . put ( "embed_width" , embedWidth . toString ( ) ) ; if ( embedHeight != null ) map . put ( "embed_height" , embedHeight . toString ( ) ) ; return map ; }
split out because episode map method was too complex for intellij