Enum TypeCode

java.lang.Object
java.lang.Enum<TypeCode>
org.pipservices3.commons.convert.TypeCode
All Implemented Interfaces:
Serializable, Comparable<TypeCode>, Constable

public enum TypeCode extends Enum<TypeCode>
Codes for the data types that can be converted using TypeConverter.
See Also:
  • Enum Constant Details

    • Unknown

      public static final TypeCode Unknown
    • String

      public static final TypeCode String
    • Boolean

      public static final TypeCode Boolean
    • Integer

      public static final TypeCode Integer
    • Long

      public static final TypeCode Long
    • Float

      public static final TypeCode Float
    • Double

      public static final TypeCode Double
    • DateTime

      public static final TypeCode DateTime
    • Duration

      public static final TypeCode Duration
    • Object

      public static final TypeCode Object
    • Enum

      public static final TypeCode Enum
    • Array

      public static final TypeCode Array
    • Map

      public static final TypeCode Map
  • Method Details

    • values

      public static TypeCode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static TypeCode valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null