Package org.onosproject.net
Enum ChannelSpacing
- java.lang.Object
-
- java.lang.Enum<ChannelSpacing>
-
- org.onosproject.net.ChannelSpacing
-
- All Implemented Interfaces:
Serializable,Comparable<ChannelSpacing>
public enum ChannelSpacing extends Enum<ChannelSpacing>
Represents interval frequency between two neighboring wavelengths.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHL_0GHZCHL_100GHZCHL_12P5GHZCHL_25GHZCHL_50GHZCHL_6P25GHZ
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Frequencyfrequency()static ChannelSpacingvalueOf(String name)Returns the enum constant of this type with the specified name.static ChannelSpacing[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CHL_100GHZ
public static final ChannelSpacing CHL_100GHZ
-
CHL_50GHZ
public static final ChannelSpacing CHL_50GHZ
-
CHL_25GHZ
public static final ChannelSpacing CHL_25GHZ
-
CHL_12P5GHZ
public static final ChannelSpacing CHL_12P5GHZ
-
CHL_6P25GHZ
public static final ChannelSpacing CHL_6P25GHZ
-
CHL_0GHZ
public static final ChannelSpacing CHL_0GHZ
-
-
Method Detail
-
values
public static ChannelSpacing[] 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 (ChannelSpacing c : ChannelSpacing.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ChannelSpacing 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
-
frequency
public Frequency frequency()
-
-