Package com.adobe.epubcheck.util
Class SourceSet.ImageSource
- java.lang.Object
-
- com.adobe.epubcheck.util.SourceSet.ImageSource
-
- Enclosing class:
- SourceSet
public static final class SourceSet.ImageSource extends java.lang.ObjectRepresent an image source. See https://html.spec.whatwg.org/#image-source
-
-
Constructor Summary
Constructors Modifier Constructor Description privateImageSource(java.lang.String url, com.google.common.base.Optional<java.lang.Integer> width, com.google.common.base.Optional<java.lang.Float> density)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SourceSet.ImageSourcecreate(java.lang.String url, int width, float density)Returns a new image source.
-
-
-
Method Detail
-
create
public static SourceSet.ImageSource create(java.lang.String url, int width, float density)
Returns a new image source.- Parameters:
url- the source URL, must not benullor empty.width- a width descriptor, will be absent ifnullor negativedensity- a density descriptor, will be absent ifnullor negative- Returns:
- a new image source
-
-