public static enum ToStringBuilder.PrintStyle extends Enum<ToStringBuilder.PrintStyle>
| 枚举常量和说明 |
|---|
DEFAULT |
MULTI_LINE |
PLAIN |
SINGLE_LINE |
| 限定符和类型 | 字段和说明 |
|---|---|
private ToStringStyle |
style |
| 限定符和类型 | 方法和说明 |
|---|---|
static ToStringBuilder.PrintStyle |
get(String name) |
ToStringStyle |
getStyle() |
static ToStringBuilder.PrintStyle |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ToStringBuilder.PrintStyle[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ToStringBuilder.PrintStyle DEFAULT
public static final ToStringBuilder.PrintStyle PLAIN
public static final ToStringBuilder.PrintStyle SINGLE_LINE
public static final ToStringBuilder.PrintStyle MULTI_LINE
private final ToStringStyle style
public static ToStringBuilder.PrintStyle[] values()
for (ToStringBuilder.PrintStyle c : ToStringBuilder.PrintStyle.values()) System.out.println(c);
public static ToStringBuilder.PrintStyle valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public ToStringStyle getStyle()
public static ToStringBuilder.PrintStyle get(String name)
Copyright © 2020. All rights reserved.