public static enum RouteInfo.LayerType extends Enum<RouteInfo.LayerType>
通过直接连接分层协议没有任何意义,因为首先可以使用新协议建立连接。 但是我们不想排除这种用例。
| Modifier and Type | Method and Description |
|---|---|
static RouteInfo.LayerType |
valueOf(String name)
以指定的名称返回此类型的枚举常量。
|
static RouteInfo.LayerType[] |
values()
按照它们声明的顺序返回一个包含此枚举类型常量的数组。
|
public static final RouteInfo.LayerType PLAIN
public static final RouteInfo.LayerType LAYERED
public static RouteInfo.LayerType[] values()
for (RouteInfo.LayerType c : RouteInfo.LayerType.values())
System.out.println(c);
public static RouteInfo.LayerType valueOf(String name)
name - 要返回的枚举常量的名称。
IllegalArgumentException - 如果此枚举类型没有指定名称的常量
NullPointerException - 如果参数为null
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.