public static enum ToString.Feature extends Enum<ToString.Feature>
| Enum Constant and Description |
|---|
coverIgnoreProperty
排除的字段使用*进行遮盖,如: 张三 =? 张* , 18502314087 => 185****087
|
disableNestProperty
是否关闭嵌套属性toString
|
empty
什么也不配置
|
ignoreNullProperty
忽略为null的字段
|
jsonFormat
以json方式进行格式化
|
nullPropertyToEmpty
null的字段转为空,如null字符串转为"", null的list转为[]
|
writeClassname
是否写出类名
|
| Modifier and Type | Method and Description |
|---|---|
static long |
createFeatures(ToString.Feature... features) |
long |
getMask() |
static boolean |
hasFeature(long features,
ToString.Feature feature) |
static long |
removeFeatures(long oldFeature,
ToString.Feature... features) |
static ToString.Feature |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ToString.Feature[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ToString.Feature empty
public static final ToString.Feature ignoreNullProperty
public static final ToString.Feature nullPropertyToEmpty
public static final ToString.Feature coverIgnoreProperty
public static final ToString.Feature disableNestProperty
public static final ToString.Feature jsonFormat
public static final ToString.Feature writeClassname
public static ToString.Feature[] values()
for (ToString.Feature c : ToString.Feature.values()) System.out.println(c);
public static ToString.Feature valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic long getMask()
public static boolean hasFeature(long features,
ToString.Feature feature)
public static long removeFeatures(long oldFeature,
ToString.Feature... features)
public static long createFeatures(ToString.Feature... features)
Copyright © 2016–2021. All rights reserved.