match

fun match(pattern: ContentType): Boolean
fun match(pattern: String): Boolean

Checks if this type matches a pattern type taking into account placeholder symbols * and parameters.