Class PrimitiveFieldType


  • public class PrimitiveFieldType
    extends FieldType
    Represents a query field type which is a primitive - String, Integer, Float, Double or Long.
    Author:
    bratseth
    • Method Detail

      • getValueClass

        public java.lang.Class getValueClass()
        Description copied from class: FieldType
        Returns the class of instance values of this field type
        Specified by:
        getValueClass in class FieldType
      • toString

        public java.lang.String toString()
        Specified by:
        toString in class FieldType
      • toInstanceDescription

        public java.lang.String toInstanceDescription()
        Description copied from class: FieldType
        Returns a string describing possible instances of this type, suitable for user error messages
        Specified by:
        toInstanceDescription in class FieldType
      • convertFrom

        public java.lang.Object convertFrom​(java.lang.Object object,
                                            CompiledQueryProfileRegistry registry)
        Description copied from class: FieldType
        Converts the given type to an instance of this type, if possible. Returns null if not possible.
        Specified by:
        convertFrom in class FieldType
      • convertFrom

        public java.lang.Object convertFrom​(java.lang.Object object,
                                            QueryProfileRegistry registry)
        Description copied from class: FieldType
        Converts the given type to an instance of this type, if possible. Returns null if not possible.
        Specified by:
        convertFrom in class FieldType
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object