MCPcopy Create free account
hub / github.com/w3c/epubcheck / Builder

Class Builder

src/main/java/com/adobe/epubcheck/util/SourceSet.java:420–447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418 }
419
420 private final static class Builder
421 {
422 private final List<ImageSource> sources = new LinkedList<>();
423 private String size = null;
424
425 public Builder add(ImageSource source)
426 {
427 if (source != null) sources.add(source);
428 return this;
429 }
430
431 @SuppressWarnings("unused")
432 public Builder size(String size)
433 {
434 this.size = size;
435 return this;
436 }
437
438 public boolean hasSources()
439 {
440 return !sources.isEmpty();
441 }
442
443 public SourceSet build()
444 {
445 return new SourceSet(ImmutableList.copyOf(sources), Strings.nullToEmpty(size));
446 }
447 }
448
449 private final static Function<ImageSource, String> LIST_TO_URL_FUNC = new Function<SourceSet.ImageSource, String>()
450 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…