Package io.wcm.handler.media
Class MediaArgs.ImageSizes
- java.lang.Object
-
- io.wcm.handler.media.MediaArgs.ImageSizes
-
-
Constructor Summary
Constructors Constructor Description ImageSizes(@NotNull String sizes, long @NotNull ... widths)ImageSizes(@NotNull String sizes, @NotNull MediaArgs.WidthOption @NotNull ... widthOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object obj)@NotNull StringgetSizes()@NotNull MediaArgs.WidthOption @Nullable []getWidthOptions()long @Nullable []getWidths()Deprecated.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
ImageSizes
public ImageSizes(@NotNull @NotNull String sizes, long @NotNull ... widths)- Parameters:
sizes- A valid source size listwidths- Widths for the renditions in thesrcsetattribute (all mandatory).
-
ImageSizes
public ImageSizes(@NotNull @NotNull String sizes, @NotNull @NotNull MediaArgs.WidthOption @NotNull ... widthOptions)- Parameters:
sizes- A valid source size listwidthOptions- Widths for the renditions in thesrcsetattribute.
-
-
Method Detail
-
getSizes
@NotNull public @NotNull String getSizes()
- Returns:
- A valid source size list
-
getWidths
@Deprecated public long @Nullable [] getWidths()
Deprecated.- Returns:
- Widths for the renditions in the
srcsetattribute.
-
getWidthOptions
@NotNull public @NotNull MediaArgs.WidthOption @Nullable [] getWidthOptions()
- Returns:
- Widths for the renditions in the
srcsetattribute.
-
-