public final class Builder extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Builder.Mode |
static class |
Builder.Type |
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
static String |
json(Object object)
返回脱敏后的对象 json
null 对象,返回字符串 "null"
|
static <T> T |
on(Object object)
脱敏对象
|
public static <T> T on(Object object)
每次都创建一个新的对象,避免线程问题
可以使用 ThreadLocal 简单优化。
T - 泛型object - 原始对象Copyright © 2019. All rights reserved.