Enum PeerDownHandler.Reason
- java.lang.Object
-
- java.lang.Enum<PeerDownHandler.Reason>
-
- org.opendaylight.protocol.bmp.parser.message.PeerDownHandler.Reason
-
- All Implemented Interfaces:
Serializable
,Comparable<PeerDownHandler.Reason>
- Enclosing class:
- PeerDownHandler
public static enum PeerDownHandler.Reason extends Enum<PeerDownHandler.Reason>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description REASON_FIVE
REASON_FOUR
REASON_ONE
REASON_THREE
REASON_TWO
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PeerDownHandler.Reason
forValue(short value)
short
getValue()
static PeerDownHandler.Reason
valueOf(String name)
Returns the enum constant of this type with the specified name.static PeerDownHandler.Reason[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REASON_ONE
public static final PeerDownHandler.Reason REASON_ONE
-
REASON_TWO
public static final PeerDownHandler.Reason REASON_TWO
-
REASON_THREE
public static final PeerDownHandler.Reason REASON_THREE
-
REASON_FOUR
public static final PeerDownHandler.Reason REASON_FOUR
-
REASON_FIVE
public static final PeerDownHandler.Reason REASON_FIVE
-
-
Method Detail
-
values
public static PeerDownHandler.Reason[] 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 (PeerDownHandler.Reason c : PeerDownHandler.Reason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PeerDownHandler.Reason valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
forValue
public static PeerDownHandler.Reason forValue(short value)
-
getValue
public short getValue()
-
-