public interface Image
Modifier and Type | Method and Description |
---|---|
ImageDimensions |
getDimensions() |
default Integer |
getHeight() |
String |
getLabel() |
String |
getUrl() |
default Integer |
getWidth() |
static Image |
of(String url,
ImageDimensions dimensions) |
static Image |
of(String url,
ImageDimensions dimensions,
String label) |
static Image |
ofWidthAndHeight(String url,
Integer width,
Integer height) |
static Image |
ofWidthAndHeight(String url,
Integer width,
Integer height,
String label) |
static com.fasterxml.jackson.core.type.TypeReference<Image> |
typeReference()
Creates a container which contains the full Java type information to deserialize this class from JSON.
|
String getUrl()
ImageDimensions getDimensions()
static Image of(String url, ImageDimensions dimensions, @Nullable String label)
static Image ofWidthAndHeight(String url, Integer width, Integer height, @Nullable String label)
static Image of(String url, ImageDimensions dimensions)
default Integer getWidth()
default Integer getHeight()
static com.fasterxml.jackson.core.type.TypeReference<Image> typeReference()