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.
Modifier and Type | Method and Description |
---|---|
static RouteInfo.LayerType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RouteInfo.LayerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 1999–2021 The Apache Software Foundation. All rights reserved.