org.zu.ardulink.util
Enum Primitive
java.lang.Object
java.lang.Enum<Primitive>
org.zu.ardulink.util.Primitive
- All Implemented Interfaces:
- Serializable, Comparable<Primitive>
public enum Primitive
- extends Enum<Primitive>
v0.6.1 Magnum PI
- Author:
- Peter Fichtner
INT
public static final Primitive INT
BYTE
public static final Primitive BYTE
SHORT
public static final Primitive SHORT
LONG
public static final Primitive LONG
FLOAT
public static final Primitive FLOAT
DOUBLE
public static final Primitive DOUBLE
BOOLEAN
public static final Primitive BOOLEAN
CHAR
public static final Primitive CHAR
values
public static Primitive[] 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 (Primitive c : Primitive.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Primitive 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 name
NullPointerException
- if the argument is null
parse
public abstract Object parse(String value)
parseAs
public static Object parseAs(Class<?> type,
String value)
forClassName
public static Primitive forClassName(String name)
getType
public Class<?> getType()
Copyright © 2015. All rights reserved.