public static enum Command.ChildCommand extends Enum<Command.ChildCommand>
| 枚举常量和说明 |
|---|
ADDRESS |
BY_ADDRESS |
BY_SERVICE |
GREP |
P |
REPORT |
S |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
description() |
CommandHandler |
handler() |
static Command.ChildCommand |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static Command.ChildCommand[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final Command.ChildCommand REPORT
public static final Command.ChildCommand ADDRESS
public static final Command.ChildCommand BY_SERVICE
public static final Command.ChildCommand BY_ADDRESS
public static final Command.ChildCommand P
public static final Command.ChildCommand S
public static final Command.ChildCommand GREP
public static Command.ChildCommand[] values()
for (Command.ChildCommand c : Command.ChildCommand.values()) System.out.println(c);
public static Command.ChildCommand valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String description()
public CommandHandler handler()
Copyright © 2018. All rights reserved.