match

abstract fun match(other: (ContentTypes) -> ContentType): Boolean

检查此内容类型是否匹配另一个作为模式的 ContentType。 支持通配符 "*"。

Return

如果匹配则返回 true

Parameters

other

要匹配的模式 ContentType