Enum AsPath.Segment.Type
- java.lang.Object
-
- java.lang.Enum<AsPath.Segment.Type>
-
- org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bgp.packets.pathattr.AsPath.Segment.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AsPath.Segment.Type>
- Enclosing class:
- AsPath.Segment
public static enum AsPath.Segment.Type extends java.lang.Enum<AsPath.Segment.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AS_SEQUENCE
AS_SET
UNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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(java.lang.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.
-
-
-
Enum Constant Detail
-
AS_SET
public static final AsPath.Segment.Type AS_SET
-
AS_SEQUENCE
public static final AsPath.Segment.Type AS_SEQUENCE
-
UNKNOWN
public static final AsPath.Segment.Type UNKNOWN
-
-
Method Detail
-
values
public static AsPath.Segment.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AsPath.Segment.Type c : AsPath.Segment.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AsPath.Segment.Type valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
from
public static AsPath.Segment.Type from(int type)
-
map
public <R> R map(java.util.function.Function<AsPath.Segment.Type,R> mapper)
-
-