public MediaType copyQualityValue ( MediaType mediaType ) { if ( ! mediaType . parameters . containsKey ( PARAM_QUALITY_FACTOR ) ) { return this ; } Map < String , String > params = new LinkedHashMap < String , String > ( this . parameters ) ; params . put ( PARAM_QUALITY_FACTOR , mediaType . parameters . get ( PARAM_QUALITY_FACTOR ) ) ; return new MediaType ( this , params ) ; }
Return a replica of this instance with the quality value of the given MediaType .