addMatchers static method

void addMatchers(
  1. String key,
  2. MatchersFunc matchersFunc
)

新增格式化参数

key 参数key值 类似于 YYYY MM DD

matchersFunc 回调方法 传入可执行的方法 返回 String

Implementation

static void addMatchers(String key, MatchersFunc matchersFunc) {
  Map<String, MatchersFunc> _m = {key: matchersFunc};
  if (_matcherstatic.containsKey(key)) {
    _matcherstatic.remove(key);
  }
  _matcherstatic.addAll(_m);
}