Class SourceSet.ImageSource
java.lang.Object
com.adobe.epubcheck.util.SourceSet.ImageSource
- Enclosing class:
SourceSet
Represent an image source. See https://html.spec.whatwg.org/#image-source
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateImageSource(String url, com.google.common.base.Optional<Integer> width, com.google.common.base.Optional<Float> density) -
Method Summary
-
Field Details
-
url
-
width
-
density
-
-
Constructor Details
-
ImageSource
-
-
Method Details
-
create
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
-