Class MediaArgs.PictureSource

  • Enclosing class:
    MediaArgs

    @ProviderType
    public static final class MediaArgs.PictureSource
    extends java.lang.Object
    Picture source for responsive image handling.
    • Constructor Detail

      • PictureSource

        public PictureSource​(@NotNull
                             @NotNull MediaFormat mediaFormat)
        Parameters:
        mediaFormat - Media format
      • PictureSource

        public PictureSource​(@Nullable
                             @Nullable java.lang.String mediaFormatName)
        Parameters:
        mediaFormatName - Media format name
    • Method Detail

      • getMediaFormat

        @Nullable
        public @Nullable MediaFormat getMediaFormat()
        Returns:
        Media format
      • getMediaFormatName

        @Nullable
        public @Nullable java.lang.String getMediaFormatName()
        Returns:
        Media format
      • getWidthOptions

        @NotNull
        public @NotNull MediaArgs.WidthOption @Nullable [] getWidthOptions()
        Returns:
        Widths for the renditions in the srcset attribute.
      • widths

        public MediaArgs.PictureSource widths​(long @NotNull ... value)
        Parameters:
        value - Widths for the renditions in the srcset attribute.
        Returns:
        this
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object