compat/src/main/java/androidx/core/content/MimeTypeFilter.java
public static boolean matches(@Nullable String mimeType, @NonNull String filter) {
        if (mimeType == null) {
            return false;
        }

        final String[] mimeTypeParts = mimeType.split("/");
        final String[] filterParts = filter.split("/");

        return mimeTypeAgainstFilter(mimeTypeParts, filterParts);
    }
/**
     * Matches one nullable MIME type against one MIME type filter.
     * @return True if the {@code mimeType} matches the {@code filter}.
     */
Matches one nullable MIME type against one MIME type filter.
@return True if the  mimeType matches the  filter.
Matches one nullable MIME type against one MIME type filter . @return True if the mimeType matches the filter .
public static boolean matches(@Nullable String mimeType, @NonNull String filter) {
        if (mimeType == null) {
            return false;
        }
        final String[] mimeTypeParts = mimeType.split("/");
        final String[] filterParts = filter.split("/");
        return mimeTypeAgainstFilter(mimeTypeParts, filterParts);
    }
public static boolean matches ( @ Nullable String mimeType , @ NonNull String filter ) { if ( mimeType == null ) { return false ; } final String [ ] mimeTypeParts = mimeType . split ( "/" ) ; final String [ ] filterParts = filter . split ( "/" ) ; return mimeTypeAgainstFilter ( mimeTypeParts , filterParts ) ; }
Matches one nullable MIME type against one MIME type filter.
Matches one nullable MIME type against one MIME type filter .