code: public final boolean isAssignableTo(MimeType mimeType) {
          if (mimeType.getPrimaryType().equals("*")) {
              // matches all
              return true;
          }
          if (!mimeType.getPrimaryType().equalsIgnoreCase(getPrimaryType())) {
              return false;
          }
          String mtSec = mimeType.getSecondaryType();
          return mtSec.equals("*") || mtSec.equalsIgnoreCase(getSecondaryType());
      }
docs: Checks if this MIME type is a subtype of the provided MIME type.
  
  @param mimeType
  - the MIME type to check against
  @return {@code true} if this MIME type is a subtype of the provided MIME
  type