public enum SMFComponentType extends Enum<SMFComponentType>
| Enum Constant and Description |
|---|
ELEMENT_TYPE_FLOATING
Floating point values.
|
ELEMENT_TYPE_INTEGER_SIGNED
Signed integer values.
|
ELEMENT_TYPE_INTEGER_UNSIGNED
Unsigned integer values.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
static SMFComponentType |
of(String name)
Return a component type for the given name.
|
static SMFComponentType |
ofInteger(int x)
Return a component type for the given integer value.
|
int |
toInteger() |
String |
toString() |
static SMFComponentType |
valueOf(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.
|
public static final SMFComponentType ELEMENT_TYPE_INTEGER_SIGNED
public static final SMFComponentType ELEMENT_TYPE_INTEGER_UNSIGNED
public static final SMFComponentType ELEMENT_TYPE_FLOATING
public static SMFComponentType[] values()
for (SMFComponentType c : SMFComponentType.values()) System.out.println(c);
public static SMFComponentType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static SMFComponentType of(String name)
name - The nameIllegalArgumentException - If the name does not refer to a recognized
typepublic static SMFComponentType ofInteger(int x)
x - The valueIllegalArgumentException - If the value does not refer to a
recognized typepublic String getName()
public String toString()
toString in class Enum<SMFComponentType>public int toInteger()
ofInteger(int)Copyright © 2017 <code@io7m.com> http://io7m.com