Class FieldType

java.lang.Object
com.broadleafcommerce.search.api.type.FieldType
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DefaultFieldType

public class FieldType extends Object implements Serializable
A generic representation for the type of a field. This is not specific to any search engine implementation. The FieldTypeConverter is responsible for transforming these field types for specific search engines.
See Also:
  • Constructor Details

    • FieldType

      public FieldType(String type)
    • FieldType

      public FieldType(String type, boolean multiValued)
  • Method Details

    • getInstance

      @Nullable public static FieldType getInstance(String type)
      Get the instance of FieldType for the given named type representation.
      Parameters:
      type - the named representation of the type
      Returns:
      the FieldType matching the type name
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getType

      public String getType()
      The named representation of the type.
      Returns:
      named representation of the type
    • isMultiValued

      public boolean isMultiValued()
      Whether this type supports multiple values.
      Returns:
      whether this type supports multiple values