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(0.3)
.h(0.3)
.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()
Height of the image.@NotNull Integer
getW()
Width of the image.static ImageDimensions
of()
factory methodstatic ImageDimensions
of
(ImageDimensions template) factory method to create a shallow copy ImageDimensionsvoid
Height of the image.void
Width of the image.static 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
Width of the image.
- Returns:
- w
-
getH
Height of the image.
- Returns:
- h
-
setW
Width of the image.
- Parameters:
w
- value to be set
-
setH
Height of the image.
- 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
-