枚举常量和说明 |
---|
CANCEL |
FIVE_BY_NINE |
FOUR_BY_NINE |
ONE_BY_NINE |
SIX_BY_NINE |
THREE_BY_NINE |
TWO_BY_NINE |
限定符和类型 | 方法和说明 |
---|---|
static @NotNull GUIType |
getByLines(int lines) |
static @NotNull GUIType |
getByName(java.lang.String name) |
static @NotNull GUIType |
getBySize(int size) |
int |
getLines() |
int |
getSize() |
static GUIType |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static GUIType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final GUIType ONE_BY_NINE
public static final GUIType TWO_BY_NINE
public static final GUIType THREE_BY_NINE
public static final GUIType FOUR_BY_NINE
public static final GUIType FIVE_BY_NINE
public static final GUIType SIX_BY_NINE
public static final GUIType CANCEL
public static GUIType[] values()
for (GUIType c : GUIType.values()) System.out.println(c);
public static GUIType valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public int getLines()
public int getSize()
@NotNull public static @NotNull GUIType getBySize(int size)
@NotNull public static @NotNull GUIType getByLines(int lines)
@NotNull public static @NotNull GUIType getByName(java.lang.String name)
Copyright © 2024. All rights reserved.