Interface ImageDimensions
public interface ImageDimensions
ImageDimensions
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ImageDimensions imageDimensions = ImageDimensions.builder()
.w(1)
.h(1)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImageDimensionsBuilder
builder()
builder factory method for ImageDimensionsstatic ImageDimensionsBuilder
builder
(ImageDimensions template) create builder for ImageDimensions instancestatic ImageDimensions
deepCopy
(ImageDimensions template) factory method to create a deep copy of ImageDimensions@NotNull Integer
getH()
@NotNull Integer
getW()
static ImageDimensions
of()
factory methodstatic ImageDimensions
of
(ImageDimensions template) factory method to create a shallow copy ImageDimensionsvoid
set hvoid
set wstatic com.fasterxml.jackson.core.type.TypeReference<ImageDimensions>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withImageDimensions
(Function<ImageDimensions, T> helper) accessor map function
-
Method Details
-
getW
- Returns:
- w
-
getH
- Returns:
- h
-
setW
set w- Parameters:
w
- value to be set
-
setH
set h- Parameters:
h
- value to be set
-
of
factory method- Returns:
- instance of ImageDimensions
-
of
factory method to create a shallow copy ImageDimensions- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ImageDimensions- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ImageDimensions- Returns:
- builder
-
builder
create builder for ImageDimensions instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withImageDimensions
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
-