Enum ArrayType
- java.lang.Object
-
- java.lang.Enum<ArrayType>
-
- com.jprofiler.api.platform.parameters.ArrayType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ArrayType>
public enum ArrayType extends java.lang.Enum<ArrayType>
Represents all array types in the JVM.These constants are returned by
ArrayDescriptor.getType().
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOLEAN_ARRAYArray ofboolean.BYTE_ARRAYArray ofbyte.CHAR_ARRAYArray ofchar.DOUBLE_ARRAYArray ofdouble.FLOAT_ARRAYArray offloat.INT_ARRAYArray ofint.LONG_ARRAYArray oflong.OBJECT_ARRAYArray of reference types.SHORT_ARRAYArray ofshort.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ArrayTypegetById(int id)Converts an integer id to the corresponding constant.intgetId()Converts the constant to an integer id.static ArrayTypevalueOf(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.
-
-
-
Enum Constant Detail
-
OBJECT_ARRAY
public static final ArrayType OBJECT_ARRAY
Array of reference types.
-
BOOLEAN_ARRAY
public static final ArrayType BOOLEAN_ARRAY
Array ofboolean.
-
BYTE_ARRAY
public static final ArrayType BYTE_ARRAY
Array ofbyte.
-
CHAR_ARRAY
public static final ArrayType CHAR_ARRAY
Array ofchar.
-
SHORT_ARRAY
public static final ArrayType SHORT_ARRAY
Array ofshort.
-
INT_ARRAY
public static final ArrayType INT_ARRAY
Array ofint.
-
LONG_ARRAY
public static final ArrayType LONG_ARRAY
Array oflong.
-
FLOAT_ARRAY
public static final ArrayType FLOAT_ARRAY
Array offloat.
-
DOUBLE_ARRAY
public static final ArrayType DOUBLE_ARRAY
Array ofdouble.
-
-
Method Detail
-
values
public static ArrayType[] 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 (ArrayType c : ArrayType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ArrayType 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
-
getById
public static ArrayType getById(int id)
Converts an integer id to the corresponding constant.- Parameters:
id- the id- Returns:
- the constant or
nullif a wring id is passed
-
getId
public int getId()
Converts the constant to an integer id.- Returns:
- the id
-
-