Package org.onosproject.net.link
Enum LinkEvent.Type
- java.lang.Object
-
- java.lang.Enum<LinkEvent.Type>
-
- org.onosproject.net.link.LinkEvent.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<LinkEvent.Type>
- Enclosing class:
- LinkEvent
public static enum LinkEvent.Type extends java.lang.Enum<LinkEvent.Type>
Type of link events.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LINK_ADDED
Signifies that a new link has been detected.LINK_REMOVED
Signifies that a link has been removed.LINK_UPDATED
Signifies that a link has been updated or changed state.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LinkEvent.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static LinkEvent.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LINK_ADDED
public static final LinkEvent.Type LINK_ADDED
Signifies that a new link has been detected.
-
LINK_UPDATED
public static final LinkEvent.Type LINK_UPDATED
Signifies that a link has been updated or changed state.
-
LINK_REMOVED
public static final LinkEvent.Type LINK_REMOVED
Signifies that a link has been removed.
-
-
Method Detail
-
values
public static LinkEvent.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 (LinkEvent.Type c : LinkEvent.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 LinkEvent.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
-
-