public class Image extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Integer |
height
The height of the image (optional)
|
protected String |
url
The URL for the image
|
protected Integer |
width
The width of the image (optional)
|
| Constructor and Description |
|---|
Image(String url)
Creates a new instance using the specified URL with unspecified
dimensions.
|
Image(String url,
Integer height,
Integer width)
Creates a new instance using the specified parameters.
|
Image(String url,
int height,
int width)
Creates a new instance using the specified parameters.
|
protected final String url
protected final Integer height
protected final Integer width
public Image(String url, Integer height, Integer width)
url - the URL for the image.height - the height of the image (optional).width - the width of the image (optional).public Image(String url, int height, int width)
url - the URL for the image.height - the height of the image.width - the width of the image.public Image(String url)
url - the URL for the image.public String getUrl()
Copyright © 2022. All rights reserved.