Enum Class ArrayType

java.lang.Object
java.lang.Enum<ArrayType>
com.jprofiler.api.platform.parameters.ArrayType
All Implemented Interfaces:
Serializable, Comparable<ArrayType>, Constable

public enum ArrayType extends Enum<ArrayType>
Represents all array types in the JVM.

These constants are returned by ArrayDescriptor.getType().

  • Enum Constant Details

    • OBJECT_ARRAY

      public static final ArrayType OBJECT_ARRAY
      Array of reference types.
    • BOOLEAN_ARRAY

      public static final ArrayType BOOLEAN_ARRAY
      Array of boolean.
    • BYTE_ARRAY

      public static final ArrayType BYTE_ARRAY
      Array of byte.
    • CHAR_ARRAY

      public static final ArrayType CHAR_ARRAY
      Array of char.
    • SHORT_ARRAY

      public static final ArrayType SHORT_ARRAY
      Array of short.
    • INT_ARRAY

      public static final ArrayType INT_ARRAY
      Array of int.
    • LONG_ARRAY

      public static final ArrayType LONG_ARRAY
      Array of long.
    • FLOAT_ARRAY

      public static final ArrayType FLOAT_ARRAY
      Array of float.
    • DOUBLE_ARRAY

      public static final ArrayType DOUBLE_ARRAY
      Array of double.
  • Method Details

    • values

      public static ArrayType[] 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

      public static ArrayType valueOf(String name)
      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 name
      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 null if a wring id is passed
    • getId

      public int getId()
      Converts the constant to an integer id.
      Returns:
      the id