Crea sito


org.zu.ardulink.util
Enum Primitive

java.lang.Object
  extended by java.lang.Enum<Primitive>
      extended by org.zu.ardulink.util.Primitive
All Implemented Interfaces:
Serializable, Comparable<Primitive>

public enum Primitive
extends Enum<Primitive>

Ardulink - return to homepage

v0.6.1 Magnum PI

Author:
Peter Fichtner


Enum Constant Summary
BOOLEAN
           
BYTE
           
CHAR
           
DOUBLE
           
FLOAT
           
INT
           
LONG
           
SHORT
           
 
Method Summary
static Primitive forClassName(String name)
           
 Class<?> getType()
           
abstract  Object parse(String value)
           
static Object parseAs(Class<?> type, String value)
           
static Primitive valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Primitive[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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.