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. TheFieldTypeConverteris responsible for transforming these field types for specific search engines.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)static FieldTypegetInstance(String type)Get the instance ofFieldTypefor the given named type representation.StringgetType()The named representation of the type.inthashCode()booleanisMultiValued()Whether this type supports multiple values.
-
-
-
Method Detail
-
getInstance
@Nullable public static FieldType getInstance(String type)
Get the instance ofFieldTypefor the given named type representation.- Parameters:
type- the named representation of the type- Returns:
- the FieldType matching the type name
-
canEqual
protected boolean canEqual(Object other)
-
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
-
-