Class ResourceCollections
java.lang.Object
com.adobe.epubcheck.opf.ResourceCollections
Represents a set of collections (as defined by
collection
elements in a Package Document), with predictable iteration order.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<ResourceCollection> private final com.google.common.collect.ListMultimap<String, ResourceCollection> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateResourceCollections(Iterable<ResourceCollection> collections) -
Method Summary
Modifier and TypeMethodDescriptionasList()Returns the list of all collections in this set.static final ResourceCollections.Builderbuilder()Creates a new builder.Returns the list of collections in this set with the given IDPF-reserved role.Returns the list of collections in this set with the given role.booleanReturnstrueif this set contains one or more collections with the given IDPF-reserved role.booleanReturnstrueif this set contains one or more collections with the given role.
-
Field Details
-
collections
-
collectionsByRole
-
-
Constructor Details
-
ResourceCollections
-
-
Method Details
-
asList
Returns the list of all collections in this set. -
getByRole
Returns the list of collections in this set with the given role. -
getByRole
Returns the list of collections in this set with the given IDPF-reserved role. -
hasRole
Returnstrueif this set contains one or more collections with the given role. -
hasRole
Returnstrueif this set contains one or more collections with the given IDPF-reserved role. -
builder
Creates a new builder. Calling this method is identical to calling the emptyResourceCollections.Builderconstructor.- Returns:
- a newly created builder.
-