Package org.onosproject.cfg
Enum ConfigProperty.Type
- java.lang.Object
-
- java.lang.Enum<ConfigProperty.Type>
-
- org.onosproject.cfg.ConfigProperty.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ConfigProperty.Type>
- Enclosing class:
- ConfigProperty
public static enum ConfigProperty.Type extends java.lang.Enum<ConfigProperty.Type>
Representation of the type of property value.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOLEAN
Indicates the value is a boolean.BYTE
Indicates the value is a byte.DOUBLE
Indicates the value is a double.FLOAT
Indicates the value is a float.INTEGER
Indicates the value is an integer.LONG
Indicates the value is a long.STRING
Indicates the value is a string.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConfigProperty.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ConfigProperty.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STRING
public static final ConfigProperty.Type STRING
Indicates the value is a string.
-
BYTE
public static final ConfigProperty.Type BYTE
Indicates the value is a byte.
-
INTEGER
public static final ConfigProperty.Type INTEGER
Indicates the value is an integer.
-
LONG
public static final ConfigProperty.Type LONG
Indicates the value is a long.
-
FLOAT
public static final ConfigProperty.Type FLOAT
Indicates the value is a float.
-
DOUBLE
public static final ConfigProperty.Type DOUBLE
Indicates the value is a double.
-
BOOLEAN
public static final ConfigProperty.Type BOOLEAN
Indicates the value is a boolean.
-
-
Method Detail
-
values
public static ConfigProperty.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 (ConfigProperty.Type c : ConfigProperty.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 ConfigProperty.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
-
-