public enum ArrayType extends java.lang.Enum<ArrayType>
These constants are returned by ArrayDescriptor.getType()
.
Enum Constant and Description |
---|
BOOLEAN_ARRAY
Array of
boolean . |
BYTE_ARRAY
Array of
byte . |
CHAR_ARRAY
Array of
char . |
DOUBLE_ARRAY
Array of
double . |
FLOAT_ARRAY
Array of
float . |
INT_ARRAY
Array of
int . |
LONG_ARRAY
Array of
long . |
OBJECT_ARRAY
Array of reference types.
|
SHORT_ARRAY
Array of
short . |
Modifier and Type | Method and Description |
---|---|
static ArrayType |
getById(int id)
Converts an integer id to the corresponding constant.
|
int |
getId()
Converts the constant to an integer id.
|
static ArrayType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ArrayType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ArrayType OBJECT_ARRAY
public static final ArrayType BOOLEAN_ARRAY
boolean
.public static final ArrayType BYTE_ARRAY
byte
.public static final ArrayType CHAR_ARRAY
char
.public static final ArrayType SHORT_ARRAY
short
.public static final ArrayType INT_ARRAY
int
.public static final ArrayType LONG_ARRAY
long
.public static final ArrayType FLOAT_ARRAY
float
.public static final ArrayType DOUBLE_ARRAY
double
.public static ArrayType[] values()
for (ArrayType c : ArrayType.values()) System.out.println(c);
public static ArrayType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static ArrayType getById(int id)
id
- the idnull
if a wring id is passedpublic int getId()