Interface Resources<T extends Resource>
- Type Parameters:
T- the contained type
- All Superinterfaces:
Resource
- All Known Subinterfaces:
ClassTree, DocumentationDirectory, FileTree<T>, InputTree<T>, JavadocDirectory, JavaResourceTree
- All Known Implementing Classes:
DefaultClassTree, DefaultFileTree, DefaultJavaResourceTree, DefaultResources, ZipFileInputTree
-
Method Summary
Modifier and TypeMethodDescriptionAdds the given resource.Adds all resources from the given stream.Adds all resources from the given collection.asOf()As of.clear()Clears the contained resources.get()Returns the resources as aSequencedSet.default booleanisEmpty()Checks if is empty.static <T extends Resource>
Tof(ResourceType<T> type) Creates a new resource container with the specified container and elements type.stream()Retrieves the resources as a stream.Creates a new resource container with elements of the given type.with(ResourceType<T> type) Creates a new resource container with elements of the given type.Methods inherited from interface Resource
asOfLocalized, cleanup, isNewerThan, name, type
-
Method Details
-
add
-
addAll
-
addAll
-
asOf
-
isEmpty
Checks if is empty. The default implementation returnsget().isEmpty(). Implementing classes should provide a more efficient implementation.- Returns:
- true, if is empty
-
get
-
stream
-
clear
-
with
-
with
Creates a new resource container with elements of the given type.- Type Parameters:
T- the generic type- Parameters:
type- the type- Returns:
- the resources container
-
of
Creates a new resource container with the specified container and elements type.- Type Parameters:
T- the generic type- Parameters:
type- the type- Returns:
- the resources container
-