Enum Class Constants.Type

java.lang.Object
java.lang.Enum<Constants.Type>
org.apache.cassandra.cql3.Constants.Type
All Implemented Interfaces:
Serializable, Comparable<Constants.Type>, Constable
Enclosing class:
Constants

public static enum Constants.Type extends Enum<Constants.Type>
  • Enum Constant Details

  • Method Details

    • values

      public static Constants.Type[] 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 Constants.Type 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
    • getPreferedTypeFor

      public AbstractType<?> getPreferedTypeFor(String text)
      Returns the exact type for the specified text
      Parameters:
      text - the text for which the type must be determined
      Returns:
      the exact type or null if it is not known.