Package org.onosproject.net
Enum Link.State
- java.lang.Object
-
- java.lang.Enum<Link.State>
-
- org.onosproject.net.Link.State
-
- All Implemented Interfaces:
Serializable
,Comparable<Link.State>
- Enclosing interface:
- Link
public static enum Link.State extends Enum<Link.State>
Representation of the link state, which applies primarily only to configured durable links, i.e. those that need to remain present, but instead be marked as inactive.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Link.State
valueOf(String name)
Returns the enum constant of this type with the specified name.static Link.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACTIVE
public static final Link.State ACTIVE
Signifies that a link is currently active.
-
INACTIVE
public static final Link.State INACTIVE
Signifies that a link is currently inactive.
-
-
Method Detail
-
values
public static Link.State[] 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 (Link.State c : Link.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Link.State 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
-
-