Interface Resources<T extends Resource>
- Type Parameters:
T- the contained type
- All Superinterfaces:
Resource
- All Known Subinterfaces:
ClassTree, FileTree<T>, JavaResourceTree
- All Known Implementing Classes:
DefaultClassTree, DefaultFileTree, DefaultJavaResourceTree, DefaultResources
-
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.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
-
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
-