public static enum Log.LogLevel extends Enum<Log.LogLevel>
| 限定符和类型 | 方法和说明 |
|---|---|
static Log.LogLevel |
from(int t) |
static Log.LogLevel |
fromName(String name) |
int |
getId() |
String |
getName() |
void |
setId(int id) |
void |
setName(String name) |
static Log.LogLevel |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static Log.LogLevel[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final Log.LogLevel trace
public static final Log.LogLevel debug
public static final Log.LogLevel info
public static final Log.LogLevel warn
public static final Log.LogLevel error
public static final Log.LogLevel off
public static Log.LogLevel[] values()
for (Log.LogLevel c : Log.LogLevel.values()) System.out.println(c);
public static Log.LogLevel valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int getId()
public void setId(int id)
public String getName()
public void setName(String name)
public static Log.LogLevel from(int t)
public static Log.LogLevel fromName(String name)
Copyright © 2020. All rights reserved.