public static enum AsPath.Segment.Type extends Enum<AsPath.Segment.Type>
Enum Constant and Description |
---|
AS_SEQUENCE |
AS_SET |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static AsPath.Segment.Type |
from(int type) |
<R> R |
map(java.util.function.Function<AsPath.Segment.Type,R> mapper) |
static AsPath.Segment.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AsPath.Segment.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AsPath.Segment.Type AS_SET
public static final AsPath.Segment.Type AS_SEQUENCE
public static final AsPath.Segment.Type UNKNOWN
public static AsPath.Segment.Type[] values()
for (AsPath.Segment.Type c : AsPath.Segment.Type.values()) System.out.println(c);
public static AsPath.Segment.Type 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 nullpublic static AsPath.Segment.Type from(int type)
public <R> R map(java.util.function.Function<AsPath.Segment.Type,R> mapper)
Copyright © 2020. All rights reserved.