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 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()
Height of the Asset source.@NotNull Integer
getW()
Width of the Asset source.static AssetDimensions
of()
factory methodstatic AssetDimensions
of
(AssetDimensions template) factory method to create a shallow copy AssetDimensionsvoid
Height of the Asset source.void
Width of the Asset source.static 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
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
-
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
-