Class FieldVariant

    • Constructor Detail

      • FieldVariant

        public FieldVariant()
    • Method Detail

      • getField

        public FieldDefinition getField()
        The field which this variant represents.
        Returns:
        field which this variant represents
      • getType

        public String getType()
        The general type of value stored in this field.

        Should be a value of FieldType

        Returns:
        value type stored in this field
      • isIncludeInResponse

        public boolean isIncludeInResponse()
        Determines whether or not this variant should be included in the search response. This must be a stored value in the search index.
        Returns:
        should this be included in the search response?
      • setField

        public void setField​(FieldDefinition field)
        The field which this variant represents.
        Parameters:
        field - field which this variant represents
      • setType

        public void setType​(String type)
        The general type of value stored in this field.

        Should be a value of FieldType

        Parameters:
        type - value type stored in this field
      • setIncludeInResponse

        public void setIncludeInResponse​(boolean includeInResponse)
        Determines whether or not this variant should be included in the search response. This must be a stored value in the search index.
        Parameters:
        includeInResponse - Should this field be included in the search response?
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object