Enum Primitive
- java.lang.Object
-
- java.lang.Enum<Primitive>
-
- org.eclipse.collections.codegenerator.model.Primitive
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
type
-
Constructor Summary
Constructors Modifier Constructor Description private
Primitive(java.lang.String type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
java.lang.String
getWrapperName()
boolean
hasSpecializedStream()
boolean
isBooleanPrimitive()
boolean
isByteOrShortOrCharPrimitive()
boolean
isBytePrimitive()
boolean
isCharPrimitive()
boolean
isDoublePrimitive()
boolean
isFloatingPoint()
boolean
isFloatOrDoublePrimitive()
boolean
isFloatPrimitive()
boolean
isIntPrimitive()
boolean
isLongPrimitive()
boolean
isShortPrimitive()
static Primitive
valueOf(java.lang.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
-
INT
public static final Primitive INT
-
FLOAT
public static final Primitive FLOAT
-
DOUBLE
public static final Primitive DOUBLE
-
LONG
public static final Primitive LONG
-
SHORT
public static final Primitive SHORT
-
BYTE
public static final Primitive BYTE
-
CHAR
public static final Primitive CHAR
-
BOOLEAN
public static final Primitive BOOLEAN
-
-
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(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
-
getName
public java.lang.String getName()
-
getWrapperName
public java.lang.String getWrapperName()
-
isIntPrimitive
public boolean isIntPrimitive()
-
isFloatingPoint
public boolean isFloatingPoint()
-
isBytePrimitive
public boolean isBytePrimitive()
-
isBooleanPrimitive
public boolean isBooleanPrimitive()
-
isCharPrimitive
public boolean isCharPrimitive()
-
isShortPrimitive
public boolean isShortPrimitive()
-
isFloatPrimitive
public boolean isFloatPrimitive()
-
isDoublePrimitive
public boolean isDoublePrimitive()
-
isLongPrimitive
public boolean isLongPrimitive()
-
hasSpecializedStream
public boolean hasSpecializedStream()
-
isByteOrShortOrCharPrimitive
public boolean isByteOrShortOrCharPrimitive()
-
isFloatOrDoublePrimitive
public boolean isFloatOrDoublePrimitive()
-
-