Matcher

fun interface Matcher<T, R>

一个匹配器,提供一个 T 作为被匹配的目标,R 为匹配原则/规则, 并得到一个匹配结果。

Functions

Link copied to clipboard
abstract fun match(target: T, rule: R): Boolean

通过匹配规则,对目标进行匹配检测。

Inheritors

Link copied to clipboard
Link copied to clipboard