public enum LogCatLevel extends Enum<LogCatLevel>
| 枚举常量和说明 |
|---|
ASSERT
Priority constant for the println method.
|
DEBUG
Priority constant for the println method; use Log.d.
|
ERROR
Priority constant for the println method; use Log.e.
|
INFO
Priority constant for the println method; use Log.i.
|
VERBOSE
Priority constant for the println method; use Log.v.
|
WARN
Priority constant for the println method; use Log.w.
|
| 限定符和类型 | 方法和说明 |
|---|---|
char |
getLevel() |
String |
toString() |
static LogCatLevel |
valueOf(int value) |
static LogCatLevel |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static LogCatLevel[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final LogCatLevel VERBOSE
public static final LogCatLevel DEBUG
public static final LogCatLevel INFO
public static final LogCatLevel WARN
public static final LogCatLevel ERROR
public static final LogCatLevel ASSERT
public static LogCatLevel[] values()
for (LogCatLevel c : LogCatLevel.values()) System.out.println(c);
public static LogCatLevel valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public char getLevel()
public String toString()
toString 在类中 Enum<LogCatLevel>public static LogCatLevel valueOf(int value)
Copyright © 2021. All rights reserved.