@NotThreadSafe public static final class Image.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
Image |
build()
Builds a new
Image. |
Image.Builder |
from(ImageIF instance)
Fill a builder with attribute values from the provided
ImageIF instance. |
Image.Builder |
setAltText(String altText)
Initializes the value for the
altText attribute. |
Image.Builder |
setImageUrl(String imageUrl)
Initializes the value for the
imageUrl attribute. |
public final Image.Builder from(ImageIF instance)
ImageIF instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final Image.Builder setImageUrl(String imageUrl)
imageUrl attribute.imageUrl - The value for imageUrlthis builder for use in a chained invocationpublic final Image.Builder setAltText(String altText)
altText attribute.altText - The value for altTextthis builder for use in a chained invocationCopyright © 2019. All rights reserved.