public enum Clear extends Enum<Clear>
| Enum Constant and Description |
|---|
both
两侧不允许出现元素
|
left
左侧不允许出现元素
|
none
共享: 两侧都允许出现元素。
|
right
右侧不允许出现元素
|
| Modifier and Type | Method and Description |
|---|---|
static Clear |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Clear[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Clear none
public static final Clear left
public static final Clear right
public static final Clear both
默认值
public static Clear[] values()
for (Clear c : Clear.values()) System.out.println(c);
public static Clear 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 nullCopyright © 2026. All rights reserved.