Interface Image
public interface Image
Image
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
Image image = Image.builder()
.url("{url}")
.dimensions(dimensionsBuilder -> dimensionsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImageBuilderbuilder()builder factory method for Imagestatic ImageBuildercreate builder for Image instancecopyDeep()static Imagefactory method to create a deep copy of Image@NotNull @Valid ImageDimensionsDimensions of the original image.getLabel()Custom label for the image.@NotNull StringgetUrl()URL of the image in its original size that must be unique within a single ProductVariant.static Imageof()factory methodstatic Imagefactory method to create a shallow copy ImagevoidsetDimensions(ImageDimensions dimensions) Dimensions of the original image.voidCustom label for the image.voidURL of the image in its original size that must be unique within a single ProductVariant.static com.fasterxml.jackson.core.type.TypeReference<Image>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getUrl
URL of the image in its original size that must be unique within a single ProductVariant.
- Returns:
- url
-
getDimensions
Dimensions of the original image.
- Returns:
- dimensions
-
getLabel
String getLabel()Custom label for the image.
- Returns:
- label
-
setUrl
URL of the image in its original size that must be unique within a single ProductVariant.
- Parameters:
url- value to be set
-
setDimensions
Dimensions of the original image.
- Parameters:
dimensions- value to be set
-
setLabel
Custom label for the image.
- Parameters:
label- value to be set
-
of
factory method- Returns:
- instance of Image
-
of
factory method to create a shallow copy Image- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
Image copyDeep() -
deepCopy
factory method to create a deep copy of Image- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for Image- Returns:
- builder
-
builder
create builder for Image instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withImage
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
-