Class SearchNumberRangeValueBuilder
java.lang.Object
com.commercetools.api.models.search.SearchNumberRangeValueBuilder
- All Implemented Interfaces:
Builder<SearchNumberRangeValue>
public class SearchNumberRangeValueBuilder
extends Object
implements Builder<SearchNumberRangeValue>
SearchNumberRangeValueBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SearchNumberRangeValue searchNumberRangeValue = SearchNumberRangeValue.builder()
.field("{field}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionset the value to the boostbuild()builds SearchNumberRangeValue with checking for non-null required valuesbuilds SearchNumberRangeValue without checking for non-null required valuesset the value to the fieldfieldType(SearchFieldType fieldType) Possible values for thefieldTypeproperty on simple expressions indicating the data type of thefield.getBoost()value of boost}getField()value of field}Possible values for thefieldTypeproperty on simple expressions indicating the data type of thefield.getGt()value of gt}getGte()value of gte}getLt()value of lt}getLte()value of lte}set the value to the gtset the value to the gteset the value to the ltset the value to the lteof()factory method for an instance of SearchNumberRangeValueBuilderof(SearchNumberRangeValue template) create builder for SearchNumberRangeValue instance
-
Constructor Details
-
SearchNumberRangeValueBuilder
public SearchNumberRangeValueBuilder()
-
-
Method Details
-
field
set the value to the field- Parameters:
field- value to be set- Returns:
- Builder
-
boost
set the value to the boost- Parameters:
boost- value to be set- Returns:
- Builder
-
fieldType
Possible values for the
fieldTypeproperty on simple expressions indicating the data type of thefield.- Parameters:
fieldType- value to be set- Returns:
- Builder
-
gte
set the value to the gte- Parameters:
gte- value to be set- Returns:
- Builder
-
gt
set the value to the gt- Parameters:
gt- value to be set- Returns:
- Builder
-
lte
set the value to the lte- Parameters:
lte- value to be set- Returns:
- Builder
-
lt
set the value to the lt- Parameters:
lt- value to be set- Returns:
- Builder
-
getField
value of field}- Returns:
- field
-
getBoost
value of boost}- Returns:
- boost
-
getFieldType
Possible values for the
fieldTypeproperty on simple expressions indicating the data type of thefield.- Returns:
- fieldType
-
getGte
value of gte}- Returns:
- gte
-
getGt
value of gt}- Returns:
- gt
-
getLte
value of lte}- Returns:
- lte
-
getLt
value of lt}- Returns:
- lt
-
build
builds SearchNumberRangeValue with checking for non-null required values- Specified by:
buildin interfaceBuilder<SearchNumberRangeValue>- Returns:
- SearchNumberRangeValue
-
buildUnchecked
builds SearchNumberRangeValue without checking for non-null required values- Returns:
- SearchNumberRangeValue
-
of
factory method for an instance of SearchNumberRangeValueBuilder- Returns:
- builder
-
of
create builder for SearchNumberRangeValue instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-