Interface AssetDimensions
public interface AssetDimensions
AssetDimensions
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AssetDimensions assetDimensions = AssetDimensions.builder()
.w(1)
.h(1)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic AssetDimensionsBuilder
builder()
builder factory method for AssetDimensionsstatic AssetDimensionsBuilder
builder
(AssetDimensions template) create builder for AssetDimensions instancestatic AssetDimensions
deepCopy
(AssetDimensions template) factory method to create a deep copy of AssetDimensions@NotNull Integer
getH()
@NotNull Integer
getW()
static AssetDimensions
of()
factory methodstatic AssetDimensions
of
(AssetDimensions template) factory method to create a shallow copy AssetDimensionsvoid
set hvoid
set wstatic com.fasterxml.jackson.core.type.TypeReference<AssetDimensions>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withAssetDimensions
(Function<AssetDimensions, 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 AssetDimensions
-
of
factory method to create a shallow copy AssetDimensions- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of AssetDimensions- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AssetDimensions- Returns:
- builder
-
builder
create builder for AssetDimensions instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withAssetDimensions
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
-