Enum Class ArrayType
- All Implemented Interfaces:
Serializable
,Comparable<ArrayType>
,Constable
Represents all array types in the JVM.
These constants are returned by ArrayDescriptor.getType()
.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionArray ofboolean
.Array ofbyte
.Array ofchar
.Array ofdouble
.Array offloat
.Array ofint
.Array oflong
.Array of reference types.Array ofshort
. -
Method Summary
Modifier and TypeMethodDescriptionstatic ArrayType
getById
(int id) Converts an integer id to the corresponding constant.int
getId()
Converts the constant to an integer id.static ArrayType
Returns the enum constant of this class with the specified name.static ArrayType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OBJECT_ARRAY
Array of reference types. -
BOOLEAN_ARRAY
Array ofboolean
. -
BYTE_ARRAY
Array ofbyte
. -
CHAR_ARRAY
Array ofchar
. -
SHORT_ARRAY
Array ofshort
. -
INT_ARRAY
Array ofint
. -
LONG_ARRAY
Array oflong
. -
FLOAT_ARRAY
Array offloat
. -
DOUBLE_ARRAY
Array ofdouble
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getById
Converts an integer id to the corresponding constant.- Parameters:
id
- the id- Returns:
- the constant or
null
if a wring id is passed
-
getId
public int getId()Converts the constant to an integer id.- Returns:
- the id
-