Enum ValueType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ValueType>, java.lang.constant.Constable, Writeable

    public enum ValueType
    extends java.lang.Enum<ValueType>
    implements Writeable
    • Field Detail

      • VALUE_TYPE

        public static final ParseField VALUE_TYPE
    • Method Detail

      • values

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

        public static ValueType 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.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getPreferredName

        public java.lang.String getPreferredName()
      • isA

        public boolean isA​(ValueType valueType)
      • isNotA

        public boolean isNotA​(ValueType valueType)
      • isNumeric

        public boolean isNumeric()
      • isFloatingPoint

        public boolean isFloatingPoint()
      • resolveForScript

        public static ValueType resolveForScript​(java.lang.String type)
      • toString

        public java.lang.String toString()
        toString in class java.lang.Enum<ValueType>
      • readFromStream

        public static ValueType readFromStream​(StreamInput in)
                                        throws java.io.IOException