Enum Primitive
- java.lang.Object
-
- java.lang.Enum<Primitive>
-
- org.palladiosimulator.generator.fluent.repository.structure.internals.Primitive
-
- All Implemented Interfaces:
Serializable
,Comparable<Primitive>
public enum Primitive extends Enum<Primitive>
Represents built-in primitive data types available in the repository, i.e. 'boolean', 'integer', 'string', 'double', 'long', 'char', 'byte', 'float', 'short'.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOLEAN
primitive data type booleanBYTE
primitive data type byteCHAR
primitive data type charDOUBLE
primitive data type doubleFLOAT
primitive data type floatINTEGER
primitive data type integerLONG
primitive data type longSHORT
primitive data type shortSTRING
primitive data type string
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Enum Constant Detail
-
BOOLEAN
public static final Primitive BOOLEAN
primitive data type boolean
-
INTEGER
public static final Primitive INTEGER
primitive data type integer
-
STRING
public static final Primitive STRING
primitive data type string
-
DOUBLE
public static final Primitive DOUBLE
primitive data type double
-
LONG
public static final Primitive LONG
primitive data type long
-
CHAR
public static final Primitive CHAR
primitive data type char
-
BYTE
public static final Primitive BYTE
primitive data type byte
-
FLOAT
public static final Primitive FLOAT
primitive data type float
-
SHORT
public static final Primitive SHORT
primitive data type short
-
-
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 nameNullPointerException
- if the argument is null
-
-