Package com.io7m.smfj.core
Enum SMFComponentType
- java.lang.Object
-
- java.lang.Enum<SMFComponentType>
-
- com.io7m.smfj.core.SMFComponentType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SMFComponentType>
public enum SMFComponentType extends java.lang.Enum<SMFComponentType>
The kind of components.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ELEMENT_TYPE_FLOATING
Floating point values.ELEMENT_TYPE_INTEGER_SIGNED
Signed integer values.ELEMENT_TYPE_INTEGER_UNSIGNED
Unsigned integer values.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
static SMFComponentType
of(java.lang.String name)
Return a component type for the given name.int
toInteger()
static SMFComponentType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SMFComponentType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ELEMENT_TYPE_INTEGER_SIGNED
public static final SMFComponentType ELEMENT_TYPE_INTEGER_SIGNED
Signed integer values.
-
ELEMENT_TYPE_INTEGER_UNSIGNED
public static final SMFComponentType ELEMENT_TYPE_INTEGER_UNSIGNED
Unsigned integer values.
-
ELEMENT_TYPE_FLOATING
public static final SMFComponentType ELEMENT_TYPE_FLOATING
Floating point values.
-
-
Method Detail
-
values
public static SMFComponentType[] 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 (SMFComponentType c : SMFComponentType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SMFComponentType 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
-
of
public static SMFComponentType of(java.lang.String name)
Return a component type for the given name.- Parameters:
name
- The name- Returns:
- A component type
- Throws:
java.lang.IllegalArgumentException
- If the name does not refer to a recognized type
-
getName
public java.lang.String getName()
- Returns:
- The unique name of the type
-
toInteger
public int toInteger()
- Returns:
- An integer value for the current component type
-
-