public enum PriorityLevel extends Enum<PriorityLevel> implements IEnum<Integer>
| 枚举常量和说明 |
|---|
LevelFive
level 5
|
LevelFour
level 4
|
LevelOne
level 1
|
LevelThree
level 3
|
LevelTwo
level 2
|
| 限定符和类型 | 方法和说明 |
|---|---|
static PriorityLevel |
get(int level) |
int |
getLevel() |
Integer |
getValue() |
boolean |
identical(int level)
level是否完全与当前Level对象相同
|
static PriorityLevel |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static PriorityLevel[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final PriorityLevel LevelOne
public static final PriorityLevel LevelTwo
public static final PriorityLevel LevelThree
public static final PriorityLevel LevelFour
public static final PriorityLevel LevelFive
public static PriorityLevel[] values()
for (PriorityLevel c : PriorityLevel.values()) System.out.println(c);
public static PriorityLevel valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static PriorityLevel get(int level)
public boolean identical(int level)
level - as it ispublic int getLevel()
Copyright © 2013–2022 Alibaba Group. All rights reserved.