Enum DataType.Name

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<DataType.Name>
    Enclosing class:
    DataType

    public static enum DataType.Name
    extends java.lang.Enum<DataType.Name>
    The CQL type name.
    • Method Detail

      • values

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

        public static DataType.Name 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 name
        java.lang.NullPointerException - if the argument is null
      • isCompatibleWith

        public boolean isCompatibleWith​(DataType.Name that)
        Return true if the provided Name is equal to this one, or if they are aliases for each other, and false otherwise.
        Parameters:
        that - the Name to compare with the current one.
        Returns:
        true if the provided Name is equal to this one, or if they are aliases for each other, and false otherwise.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<DataType.Name>