public class NameStrategy extends AbstractProvider
0. 少于等于1个字 直接返回 1. 两个字 隐藏姓 2. 三个及其以上 只保留第一个和最后一个 其他用星号代替
| Constructor and Description |
|---|
NameStrategy() |
| Modifier and Type | Method and Description |
|---|---|
Object |
build(Object object,
Context context)
脱敏
|
build, buildpublic Object build(Object object, Context context)
StrategyProviderobject - 原始内容context - 执行上下文Copyright © 2021. All rights reserved.