Enum Class PrimitiveWrapper

java.lang.Object
java.lang.Enum<PrimitiveWrapper>
oracle.dbtools.plugin.api.types.PrimitiveWrapper
All Implemented Interfaces:
Serializable, Comparable<PrimitiveWrapper>, Constable

public enum PrimitiveWrapper extends Enum<PrimitiveWrapper>
Enumeration of the wrapper type for each Java Primitive type
Since:
19.3.0
Author:
cdivilly
  • Enum Constant Details

  • Method Details

    • values

      public static PrimitiveWrapper[] 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 PrimitiveWrapper 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
    • type

      public Class<?> type()
      The Class instance for this primtive wrapper
      Returns:
      Class instance
    • primitive

      public Primitive primitive()
      The corresponding Primitive type
      Returns:
      Primitive instance
    • isWrapper

      public boolean isWrapper()
      Indicates if this represents a primitive wrapper type
      Returns:
      true if this is not REFERENCE or PRIMITIVE, false otherwise
    • valueOf

      public static PrimitiveWrapper valueOf(Class<?> type)
      Determine the appropriate PrimitiveWrapper for the specified type
      Parameters:
      type - The type to check
      Returns:
      PrimitiveWrapper instance