Interface AssetDimensions
public interface AssetDimensions
Dimensions of the Asset source specified by the number of pixels.
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()Height of the Asset source.@NotNull IntegergetW()Width of the Asset source.static AssetDimensionsof()factory methodstatic AssetDimensionsof(AssetDimensions template) factory method to create a shallow copy AssetDimensionsvoidHeight of the Asset source.voidWidth 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
Width of the Asset source.
- Returns:
- w
-
getH
Height of the Asset source.
- Returns:
- h
-
setW
Width of the Asset source.
- Parameters:
w- value to be set
-
setH
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
-