public static enum SpecialNextHop.SpecialNextHop$ extends Enum<SpecialNextHop.SpecialNextHop$> implements Enumeration
Enum Constant and Description |
---|
Blackhole
Silently discard the packet.
|
Prohibit
Discard the packet and notify the sender with an errormessage indicating that
the communication isadministratively prohibited.
|
Receive
The packet will be received by the local system.
|
Unreachable
Discard the packet and notify the sender with an errormessage indicating that
the destination host isunreachable.
|
Modifier and Type | Method and Description |
---|---|
static Optional<SpecialNextHop.SpecialNextHop$> |
forName(String name)
Return the enumeration member whose
getName() matches specified value. |
static SpecialNextHop.SpecialNextHop$ |
forValue(int intValue)
Return the enumeration member whose
getIntValue() matches specified value. |
int |
getIntValue()
Returns the assigned value of the enumeration item as it is specified in the input YANG.
|
String |
getName()
Returns the assigned name of the enumeration item as it is specified in the input YANG.
|
static SpecialNextHop.SpecialNextHop$ |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SpecialNextHop.SpecialNextHop$[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SpecialNextHop.SpecialNextHop$ Blackhole
public static final SpecialNextHop.SpecialNextHop$ Unreachable
public static final SpecialNextHop.SpecialNextHop$ Prohibit
public static final SpecialNextHop.SpecialNextHop$ Receive
public static SpecialNextHop.SpecialNextHop$[] values()
for (SpecialNextHop.SpecialNextHop$ c : SpecialNextHop.SpecialNextHop$.values()) System.out.println(c);
public static SpecialNextHop.SpecialNextHop$ 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 String getName()
Enumeration
getName
in interface Enumeration
public int getIntValue()
Enumeration
getIntValue
in interface Enumeration
public static Optional<SpecialNextHop.SpecialNextHop$> forName(String name)
getName()
matches specified value.name
- YANG assigned nameNullPointerException
- if name is nullpublic static SpecialNextHop.SpecialNextHop$ forValue(int intValue)
getIntValue()
matches specified value.intValue
- integer valueCopyright © 2019 OpenDaylight. All rights reserved.