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)
.label("{label}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImageBuilder
builder()
builder factory method for Imagestatic ImageBuilder
create builder for Image instancestatic Image
factory method to create a deep copy of Image@NotNull @Valid ImageDimensions
@NotNull String
getLabel()
@NotNull String
getUrl()
static Image
of()
factory methodstatic Image
factory method to create a shallow copy Imagevoid
setDimensions
(ImageDimensions dimensions) set dimensionsvoid
set labelvoid
set urlstatic com.fasterxml.jackson.core.type.TypeReference<Image>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getUrl
- Returns:
- url
-
getDimensions
- Returns:
- dimensions
-
getLabel
- Returns:
- label
-
setUrl
set url- Parameters:
url
- value to be set
-
setDimensions
set dimensions- Parameters:
dimensions
- value to be set
-
setLabel
set label- 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
-
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
-