Interface NumberField
- All Superinterfaces:
CustomField
A field with a number value.
Example to create an instance using the builder pattern
NumberField numberField = NumberField.builder()
.value(0.3)
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic NumberFieldBuilder
builder()
builder factory method for NumberFieldstatic NumberFieldBuilder
builder
(NumberField template) create builder for NumberField instancestatic NumberField
deepCopy
(NumberField template) factory method to create a deep copy of NumberField@NotNull Double
getValue()
static NumberField
of()
factory methodstatic NumberField
of
(NumberField template) factory method to create a shallow copy NumberFieldvoid
set valuestatic com.fasterxml.jackson.core.type.TypeReference<NumberField>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withNumberField
(Function<NumberField, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.customfields.CustomField
getType, withCustomField
-
Field Details
-
NUMBER
discriminator value for NumberField- See Also:
-
-
Method Details
-
getValue
- Returns:
- value
-
setValue
set value- Parameters:
value
- value to be set
-
of
factory method- Returns:
- instance of NumberField
-
of
factory method to create a shallow copy NumberField- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of NumberField- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for NumberField- Returns:
- builder
-
builder
create builder for NumberField instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withNumberField
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-