Class SrcsetSourceDef


  • public class SrcsetSourceDef
    extends Object
    This class contains a single source within a srcset.
    Author:
    nhant01, GeorgeLuo
    • Constructor Detail

      • SrcsetSourceDef

        public SrcsetSourceDef​(@Nonnull
                               String url,
                               @Nonnull
                               String widthOrPixelDensity)
        Constructor.
        Parameters:
        url - the url.
        widthOrPixelDensity - width or pixel density.
    • Method Detail

      • getUrl

        public String getUrl()
        Returns the url.
        Returns:
        returns the url.
      • getWidthOrPixelDensity

        public String getWidthOrPixelDensity()
        Returns the width or pixel density.
        Returns:
        returns the width or pixel density.