Interface AssetDimensions
public interface AssetDimensions
The width and height of the Asset Source.
Example to create an instance using the builder pattern
AssetDimensions assetDimensions = AssetDimensions.builder()
.w(0.3)
.h(0.3)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic AssetDimensionsBuilderbuilder()builder factory method for AssetDimensionsstatic AssetDimensionsBuilderbuilder(AssetDimensions template) create builder for AssetDimensions instancecopyDeep()static AssetDimensionsdeepCopy(AssetDimensions template) factory method to create a deep copy of AssetDimensions@NotNull IntegergetH()The height of the asset source.@NotNull IntegergetW()The width of the asset source.static AssetDimensionsof()factory methodstatic AssetDimensionsof(AssetDimensions template) factory method to create a shallow copy AssetDimensionsvoidThe height of the asset source.voidThe width of the asset source.static com.fasterxml.jackson.core.type.TypeReference<AssetDimensions>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithAssetDimensions(Function<AssetDimensions, T> helper) accessor map function
-
Method Details
-
getW
The width of the asset source.
- Returns:
- w
-
getH
The height of the asset source.
- Returns:
- h
-
setW
The width of the asset source.
- Parameters:
w- value to be set
-
setH
The height of the asset source.
- 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
-
copyDeep
AssetDimensions copyDeep() -
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
-