Enum Type

  • All Implemented Interfaces:
    com.alibaba.fastffi.CXXEnum, com.alibaba.fastffi.FFIType, Serializable, Comparable<Type>

    public enum Type
    extends Enum<Type>
    implements com.alibaba.fastffi.CXXEnum
    • Enum Constant Detail

      • BOOL

        public static final Type BOOL
        Boolean
      • INT32

        public static final Type INT32
        Signed 32-bit integer
      • INT64

        public static final Type INT64
        Signed 64-bit integer
      • FLOAT

        public static final Type FLOAT
        4-byte floating point value
      • DOUBLE

        public static final Type DOUBLE
        8-byte floating point value
      • STRING

        public static final Type STRING
        UTF8 variable-length string
      • USER_DEFINED

        public static final Type USER_DEFINED
        User-defined data type
      • MAX_ID

        public static final Type MAX_ID
    • Method Detail

      • values

        public static Type[] 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 (Type c : Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Type 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
      • get

        public static Type get​(int value)
      • getValue

        public int getValue()
        Specified by:
        getValue in interface com.alibaba.fastffi.CXXEnum