public static enum RouteInfo.LayerType extends Enum<RouteInfo.LayerType>
Layering a protocol over a direct connection makes little sense, since the connection could be established with the new protocol in the first place. But we don't want to exclude that use case.
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 - 如果参数为空值Copyright © 2023. All rights reserved.