public interface Formater extends FormatProvider
Modifier and Type | Method and Description |
---|---|
void |
addFormatProvider(String prefix,
FormatProvider formatProvider)
添加格式化提供者
|
void |
setFormatProviders(Map<String,FormatProvider> formatProviders)
设置格式化提供者
|
void |
setPatternHandle(PatternDefine patternHandle)
设置正则表达式,如果不想用默认正则表达式,可以通过此方法自行定义
|
format
void setPatternHandle(PatternDefine patternHandle)
patternHandle
- void setFormatProviders(Map<String,FormatProvider> formatProviders)
formatProviders
- Key为匹配范围符void addFormatProvider(String prefix, FormatProvider formatProvider)
prefix
- 前缀formatProvider
- Copyright © 2006–2018 TinyGroup. All rights reserved.