Class AssetDimensionsBuilder
java.lang.Object
com.commercetools.history.models.common.AssetDimensionsBuilder
- All Implemented Interfaces:
Builder<AssetDimensions>
AssetDimensionsBuilder
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()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds AssetDimensions with checking for non-null required valuesbuilds AssetDimensions without checking for non-null required valuesgetH()
value of h}getW()
value of w}set the value to the hstatic AssetDimensionsBuilder
of()
factory method for an instance of AssetDimensionsBuilderstatic AssetDimensionsBuilder
of
(AssetDimensions template) create builder for AssetDimensions instanceset the value to the w
-
Constructor Details
-
AssetDimensionsBuilder
public AssetDimensionsBuilder()
-
-
Method Details
-
w
set the value to the w- Parameters:
w
- value to be set- Returns:
- Builder
-
h
set the value to the h- Parameters:
h
- value to be set- Returns:
- Builder
-
getW
value of w}- Returns:
- w
-
getH
value of h}- Returns:
- h
-
build
builds AssetDimensions with checking for non-null required values- Specified by:
build
in interfaceBuilder<AssetDimensions>
- Returns:
- AssetDimensions
-
buildUnchecked
builds AssetDimensions without checking for non-null required values- Returns:
- AssetDimensions
-
of
factory method for an instance of AssetDimensionsBuilder- Returns:
- builder
-
of
create builder for AssetDimensions instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-