@Nonnull
  public QValue getQValueOfMimeType (@Nonnull final IMimeType aMimeType)
  {
    ValueEnforcer.notNull (aMimeType, "MimeType");

    // Extract only the real MIME type, without any parameters!
    final IMimeType aRealMimeType = aMimeType.getCopyWithoutParameters ();

    QValue aQuality = m_aMap.get (aRealMimeType);
    if (aQuality == null)
    {
      // Check for "contenttype/*"
      aQuality = m_aMap.get (aRealMimeType.getContentType ().buildMimeType ("*"));
      if (aQuality == null)
      {
        // If not explicitly given, check for "*"
        aQuality = m_aMap.get (AcceptMimeTypeHandler.ANY_MIMETYPE);
        if (aQuality == null)
        {
          // Neither charset nor "*" nor "*/*" is present
          return QValue.MIN_QVALUE;
        }
      }
    }
    return aQuality;
  }
@ Nonnull public QValue getQValueOfMimeType ( @ Nonnull final IMimeType aMimeType ) { ValueEnforcer . notNull ( aMimeType , "MimeType" ) ; final IMimeType aRealMimeType = aMimeType . getCopyWithoutParameters ( ) ; QValue aQuality = m_aMap . get ( aRealMimeType ) ; if ( aQuality == null ) { aQuality = m_aMap . get ( aRealMimeType . getContentType ( ) . buildMimeType ( "*" ) ) ; if ( aQuality == null ) { aQuality = m_aMap . get ( AcceptMimeTypeHandler . ANY_MIMETYPE ) ; if ( aQuality == null ) { return QValue . MIN_QVALUE ; } } } return aQuality ; }
Return the associated quality of the given MIME type using the fallback
mechanism.

@param aMimeType
The charset name to query. May not be <code>null</code>.
@return The {@link QValue} of the mime type