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. TheFieldTypeConverter
is 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 boolean
canEqual(Object other)
boolean
equals(Object o)
static FieldType
getInstance(String type)
Get the instance ofFieldType
for the given named type representation.String
getType()
The named representation of the type.int
hashCode()
boolean
isMultiValued()
Whether this type supports multiple values.
-
-
-
Method Detail
-
getInstance
@Nullable public static FieldType getInstance(String type)
Get the instance ofFieldType
for 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
-
-