Class Image.Builder
java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject.Builder
se.michaelthelin.spotify.model_objects.specification.Image.Builder
- All Implemented Interfaces:
IModelObject.Builder
- Enclosing class:
Image
Builder class for building
Image
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a model object with the information set in the builder object.The height setter.The source URL setter.The width setter.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setHeight
The height setter.- Parameters:
height
- The image height in pixels. If unknown:null
.- Returns:
- A
Image.Builder
.
-
setUrl
The source URL setter.- Parameters:
url
- The source URL of the image.- Returns:
- A
Image.Builder
.
-
setWidth
The width setter.- Parameters:
width
- The image width in pixels. If unknown:null
.- Returns:
- A
Image.Builder
.
-
build
Description copied from interface:IModelObject.Builder
Build a model object with the information set in the builder object.
The type of the model object and its methods depend on its corresponding implementation.- Returns:
- A model object.
-